I'd like to make a !bonk command that when used, counts the number of times that a specific user has been bonked. As it is with a simple $(count), it's global. I understand that Nightbot currently cannot perform individual counters like this. Old threads I've searched dealing with this issue are confusing and unfortunately I'm not code savvy.
How can I set up an individual counter for commands?
8 replies
So, in those commands, every time an user is slapped, their name is added to the list of slapped users, and when you want to know how many times an user has been slapped, it pulls the list, and then counts how many times the user's name appears, hence why you don't need to add the $(count) variable, I hope it's clearer.
This helps a little... I put in the commands but the !slap command doesn't say how many times the person has been slapped. What command do I use to check how many times they were slapped? Does the user of the command have to use the !slap command and then also input a separate command just to see the slap count?
Didn't find your answer? The community is on Discord.
Ask on Discord