Win-Loss / Death-Kill Counters in one command

I can’t figure out how to make a set of commands that would allow me to add wins and losses separately. Like !gw adds a win, !gl adds a loss and !gulag returns Wins: 3 Losses:2 or whatever the current count is. Is there such a thing as multiple variables in one set of commands?

Hey @zombihuntress!

One way you could do this is by using the quote system API. You’ll get your TOKENS by clicking on the second link in the post, in the Manual Installation section, 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. Add the following commands from the dashboard. Don’t use the chat as anyone could monitor it and copy the token, they could then edit your data.

To add wins and losses to the counters:




Make sure !gw and !gl are for moderators and above only and to add !gulag as an alias to these commands.

For the main command:

$(eval q=`$(urlfetch json`;w=q.match(/w\d+/g);l=q.match(/l\d+/g);w==null?w=0:w=w.pop().replace(`w`,``);l==null?l=0:l=l.pop().replace(`l`,``);`Wins: ${w} | Losses: ${l}`)

And then to reset the counters:

!gw -c=0


!gl -c=0



Make sure !gwreset and !glreset have !editcom as an alias, and that !gwreset, !glreset and !gulagreset are for moderators and above only as well.

1 Like

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