!slap Command on nightbot

So I got the slap command working with pastebin. I’m just curious if and how I can use the counting variable to count hopw many times the specific user being slapped, has been slapped. Right now, it just counts how many times the !slap command has been used in total.

Hey @dominic_jennings!

A counter $(count) only counts the number of use of the command, and can’t be used to count how many times a specific user has been slapped.
A way to go about this would be to make your own API and call it with Nightbot.


That said, I’ve worked on solutions in the past using an already existing API, but we don’t recommend doing this as it goes against how the dev intended their API to be used, so you’re on your own if you want to adapt my code to your needs:

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