Increment response based on counter

Asked Jan 20, 2021·3 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.

one of the channels i mod for wants a !hello command that after the first time gives a single emote. the second time the !hello command is used two of the emotes are replied with, so after !hello is used 10 times, the chat response should be 10 of the emotes. the count should reset for the start of each stream, which ideally is done programmatically, but i understand it would likely need to be a second command that does the reset. does anyone have any idea how to accomplish this?

3 replies

Replace EMOTE with the emote; don't remove the space next to it. !reset resets the counter.

!addcom -cd=5 !hello $(eval `EMOTE `.repeat($(count)).slice(0,400))
!addcom !reset -a=!editcom !hello \-c=0

the counter part works perfectly, but the reset didn't. no worries though, i got that figured out without too much trouble. thank you so much @Deft Penguin for your help!

@Fleet Ram The syntax for !reset missed a letter. It should now work.