@marqkthefox The entire bundle of commands I have set up requires three sets of tokens - use this link as many times as needed to get your tokens (which you should remember to keep in a safe place). Remember, each set of tokens has a public token (8 characters long) and a private token (16 characters long). I will name the tokens as follows. Please keep track of which tokens you’re using for which commands. Whenever you see one of these token names appear in a command, replace the name with the corresponding token:
Set 1: ArenaPub
& ArenaPriv
<== Manages the player list.
Set 2: AllTimePub
& AllTimePriv
<== Manages the all time wins list.
Set 3: DailyPub
& DailyPriv
<== Manages the daily wins list.
I have grouped the commands according to their functions. Follow the instructions exactly as stated for each group of commands when adding them.
Arena commands: !arena, !arenap2, !arenaclear (mod only). Replace ArenaPub
and ArenaPriv
with their corresponding tokens. Copy and paste the setup for these commands into chat 1 at a time:
!addcom -cd=5 !arena -a=!arenap2 $(eval `$(urlfetch json http://twitch.center/customapi/quote/list?token=ArenaPub)`.includes(`-$(user)-`)?` `:`http://twitch.center/customapi/addquote?token=ArenaPriv&data=-$(user)-`)
!addcom -cd=5 !arenap2 $(eval a=`$(urlfetch $(query))`.charAt(0)==`S`?`$(user) has entered the Disc Wars arena!`:`$(user) is already in the arena!`)
!addcom -ul=mod !arenaclear $(urlfetch http://twitch.center/customapi/delquote?token=ArenaPriv&clear=1) from the Disc Wars arena!
Disc Wars commands: !discwars, !discwarsp2. Replace ArenaPub
, ArenaPriv
, AllTimePriv
, and DailyPriv
with their corresponding tokens. Copy and paste the setup for !discwars into chat, use the Nightbot dashboard to add !discwarsp2:
!addcom -cd=5 !discwars -a=!discwarsp2 $(eval a=`-$(user)-`;b=decodeURIComponent(`-$(querystring)-`);c=`$(urlfetch json http://twitch.center/customapi/quote/list?token=ArenaPub)`;if(c.includes(a)&&c.toLowerCase().includes(b.toLowerCase())&&a.toLowerCase()!=b.toLowerCase()){if(Math.round(Math.random())==0){`ArenaPriv&data=`+a+` &data=`+b;}else{`ArenaPriv&data=`+b+` &data=`+a;}}else{` `;})
On the dashboard:
Click Add Command
Type !discwarsp2
into Command
field
Copy and paste this into Message
field. Don’t forget to copy and paste in those tokens:
$(eval a=`$(urlfetch http://twitch.center/customapi/delquote?token=$(1))`;b=`$(urlfetch http://twitch.center/customapi/addquote?token=AllTimePriv$(2))`;c=`$(urlfetch http://twitch.center/customapi/addquote?token=DailyPriv$(2))`;if(`$(query)`!=` `){c=`$(1)`.slice(23,`$(1)`.length-1);d=`$(2)`.slice(7,`$(2)`.length-1);if(`$(user)`.toLowerCase()==d.toLowerCase()){d+` won against `+c+` and advanced to the next level!`;}else{c+` lost against `+d+` and faced Deresolution!`;}}else{`Error!`})
Click Submit
Wins commands: !wins, !winsclear (mod only), !winsdaily, !winsdailyclear (mod only). Replace AllTimePub
, AllTimePriv
, DailyPub
, and DailyPriv
with their corresponding tokens. Copy and paste the setup for these commands into chat 1 at a time:
!addcom -cd=5 !wins $(eval a=`$(urlfetch json http://twitch.center/customapi/quote/list?token=AllTimePub)`.match(/-$(touser)-/gi);a!=null?`$(touser) has won `+a.length+` Disc Wars.`:`$(touser) has won 0 Disc Wars in total.`)
!addcom -ul=mod !winsclear $(urlfetch http://twitch.center/customapi/delquote?token=AllTimePriv&clear=1) from the Disc Wars All Time points list!
!addcom -cd=5 !winsdaily $(eval a=`$(urlfetch json http://twitch.center/customapi/quote/list?token=DailyPub)`.match(/-$(touser)-/gi);a!=null?`$(touser) has won `+a.length+` Disc Wars.`:`$(touser) has won 0 Disc Wars today.`)
!addcom -ul=mod !winsdailyclear $(urlfetch http://twitch.center/customapi/delquote?token=DailyPriv&clear=1) from the Disc Wars Daily points list!
Command usages:
!arena <= Join the Disc Wars arena.
!arenaclear <= Clear the Disc Wars arena (mod only).
!discwars [username] <= Challenge another user to Disc Wars. Loser is removed from the arena.
!wins [username/leave blank] <= Look up any user's all time wins. Enter username to look up another user's wins or leave blank to look up your own wins.
!winsclear <= Clear the all-time wins list (mod only).
!winsdaily [username/leave blank] <= Look up any user's daily wins. Enter username to look up another user's wins or leave blank to look up your own wins.
!winsdailyclear <= Clear the daily wins list (mod only).