Good day everyone:
I’m trying to create some simple commands for a counter:
-
Show how many times the streamer has crashed (for everyone)
-
Increase counter by 1 (only for mods)
-
Reset counter back to 0 (only for mods)
After few hours of trying and searching, I’ve came across so many threads that either:
Tell you how to increase the counter and reset it, but can’t show it without increasing it
Or
Tell you how to show it and increase it without showing it and unable to reset it
As for now I have this setup
To show how many times Trina crashed:
!addcom !crash Trina crashed 0 times today!
To add to the counter (won’t show it after adding, so I have to manually retype “!crash” to show the updated counter on a second message):
!addcom !crashadd -ul=mod -a=!editcom !crash $(twitch $(channel) “Trina crashed $(count) times today!”)
Technically I do have a reset but it straight up doesn’t work:
!addcom !crashreset -ul=mod -a=!editcom !crashadd -c=0
The other way that I found to make the reset work is to change the !crash into this:
!addcom !crash Trina has crashed &(count) times today!
The problem with this second method is that I can’t quite understand how to show the counter without increase it with !crash
Is there a way to show the counter with the second method or is there a way to reset the counter on the first method?