Increment response based on counter

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?

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 @RokettoJanpu for your help!

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

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.