!addcom -ul=moderator !addwin $(eval a=$(urlfetch http://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=win);) $(channel) just won! rooPog
!addcom -ul=moderator !addloss $(eval a=$(urlfetch http://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=loss);) $(channel) just lost! rooCry
!addcom -ul=moderator !adddraw $(eval a=$(urlfetch http://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=draw);) $(channel)'s game ended in a draw! rooBlank
!addcom -cd=5 !score $(channel) has $(eval a=$(urlfetch json http://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN);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.)
But, i want to implement a command that adds an arbitrary number to each of win, lose, and draw.
Ex)
cmd) !score
ans) 0 wins, 0 losses, and 0 draws.
cmd) !addwin
cmd) !score
ans) 1 wins, 0 losses, and 0 draws.
cmd) !addwins 2 (Desired command ,the same goes for losses and draws.)
cmd) !score
ans) 3 wins, 0 losses, and 0 draws.
cmd) !decwins 2 or !addwins -2 (Desired command ,the same goes for losses and draws.)
cmd) !score
ans) 1 wins, 0 losses, and 0 draws.
When you set up a night bot, you were very helpful to me.
The answer to my question also showed the result I wanted, and I am very satisfied.
You are God.
Thank you for your reply.