hi, is there anyway i can get count to count how many times someone has been mentioned inside a command?
as an example (user) blames (touser) for everything wrong in the world, (touser) has been blamed for this (count) times
but the counter would count specifically how many times the user in the command, not just the command
2 replies
night
This isn't possible currently with the count variable (since it only retains a global count of usage per command).
Polar Cat
Hey @Sparkly Chipmunk!
I have a workaround, for that we'll use the quote system API. You'll get your TOKENS by clicking on the second link in the post, use these in the commands I wrote. To know where to look for your PUBLIC_TOKEN and PRIVATE_TOKEN, look at the field bellow:
Keep your PRIVATE_TOKEN secret, don’t share it anywhere. To add a command containing your PRIVATE_TOKEN do it from the dashboard. Don’t use the chat as anyone could monitor it and copy the token, they could then edit your data.
Then you would have the following commands: • !blame
$(eval `$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(touser)|)`; `$(user) blames $(touser) for everything wrong in the world, $(touser) has been blamed for this`)