


#Multi counter on stream code#
There is a line of code towards the end of this command that reads: Replace publicTokenHere with your public token. Copy and paste this new !score command that allows for a preset score. Replace privateTokenHere with your private token: !addcom -ul=moderator !reset $(eval a=`$(urlfetch )` ` `) The score has been reset!ĭelete the !score command if you already added it. !addcom -cd=5 !score $(channel) has $(eval a=`$(urlfetch json )` a.match(/win/g)!=null?w=a.match(/win/g).length:w=0 a.match(/loss/g)!=null?l=a.match(/loss/g).length:l=0 a.match(/draw/g)!=null?d=a.match(/draw/g).length:d=0 w+` wins, `+l+` losses, and `+d+` draws.`)įeel free to change the responses of !addwin, !addloss, and !adddraw just as long as the $(eval) variables remain is the setup for a !reset command (mod-only). !addcom -ul=moderator !adddraw $(eval a=`$(urlfetch )` ` `) $(channel)'s game ended in a draw! rooBlank !addcom -ul=moderator !addloss $(eval a=`$(urlfetch )` ` `) $(channel) just lost! rooCry !addcom -ul=moderator !addwin $(eval a=`$(urlfetch )` ` `) $(channel) just won! rooPog 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. !score which displays the numbers of wins/losses/drawsĮither copy and paste these commands into chat or add them through the Nightbot dashboard. !adddraw which adds a draw to the running score (mod-only) !addloss which adds a loss to the running score (mod-only) !addwin which adds a win to the running score (mod-only) The tokens are found after token= and before &data=$(querystring) Copy them and keep them somewhere safe! The private token is located within both the second and third generated links. The public token is located within the first generated link.

It will generate three links and two tokens, a public token (8 characters long) and a private token (16 characters long). This is possible using ehsankia’s quote custom API - read more about it here.Ĭlick this link.
