i need to have a command that, if called tell how many times another command was used.
and all of the command will be autonomy, without the user has to add manually the counter, can we do it?
Click this link. It will generate three links and two tokens, a public token (8 characters long) and a private token (16 characters long). The public token is located within the first generated link. The private token is located within both the second and third generated links. The tokens are found after
token= and before
&data=$(querystring) Copy them and keep them somewhere safe!
I assume what you want uses two commands: A command that does whatever and a second command that tells how many times the former command was used. I’m going to call the former !test and the latter !testcount. Either copy and paste these commands into chat or add them through the Nightbot dashboard. Add the commands through chat only if you are sure no one else is there, otherwise they might see your private token (which is used to edit the list)! Replace
PUBLIC_TOKEN with your public token and
PRIVATE_TOKEN with your private token.
!addcom -cd=5 !test $(eval a='$(urlfetch http://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=e)';' ') [whatever command response you want] !addcom -cd=5 !testcount The !test command was used $(eval '$(urlfetch http://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN)'.split('.').length-1) times.
[whatever command response you want] with the command response you want, and feel free to change the command names.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.