How do you create custom counters?

Asked Feb 13, 2021·2 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I want to add a pushup counter to my stream. I want !pushups to show how many pushups I owe. I want !pushups+ to add 10 to the counter and !pushups- to subtract 10 from the main counter. I have tried to find this answer out on my own but I'm not having any luck!

2 replies

Hey @Zippy Lion!

You won't be able to subtract, I'm not sure why you'd want to substract anyway, but you can make the rest work this way:

!addcom !pushups $(channel) did 0 pushups.
!addcom !addpushup -a=!editcom -ul=mod !pushups $(channel) did $(eval $(count)*10) pushups.

Follow the instructions in this thread (link expired) for creating a set of commands to run a flexible counter (can add any integer value), then add these commands to specifically add 10 and -10.

!addcom !pushups+ -a=!add 10
!addcom !pushups- -a=!add -10