@tonystonem The custom API used in those commands (http://twitch.center/customapi…) should work no matter what platform you’re streaming on.
I’ve set up 5 commands below:
!addbeer which adds 1 to the current beer count (mod-only)
!addpee which adds 1 to the current pee count (mod-only)
!addjoint which adds 1 to the current joint count (mod-only)
!total which displays the number of beers/pee/joints
!reset which clears all counts (mod-only)
Follow the instructions given in my first post to get your public and private tokens, but instead of adding the commands I setup in that post, copy and paste the ones I set up below into chat (or add them through the Nightbot dashboard). Replace
publicTokenHere with your public token and
privateTokenHere with your private token:
!addcom -ul=moderator !addbeer $(eval a=`$(urlfetch http://twitch.center/customapi/addquote?token=privateTokenHere&data=beer)`;` `) $(channel) has chugged another beer! rooSip
!addcom -ul=moderator !addpee $(eval a=`$(urlfetch http://twitch.center/customapi/addquote?token=privateTokenHere&data=pee)`;` `) $(channel) has gone to take a piss. rooNya
!addcom -ul=moderator !addjoint $(eval a=`$(urlfetch http://twitch.center/customapi/addquote?token=privateTokenHere&data=joint)`;` `) $(channel) has smoked another joint. rooVV
!addcom -cd=5 !total $(eval a=`$(urlfetch json http://twitch.center/customapi/quote/list?token=publicTokenHere)`;a.match(/beer/g)!=null?b=a.match(/beer/g).length:b=0;a.match(/pee/g)!=null?p=a.match(/pee/g).length:p=0;a.match(/joint/g)!=null?j=a.match(/joint/g).length:j=0;`$(channel) has chugged `+b+` beers, taken a piss `+p+` times, and smoked `+j+` joints.`)
!addcom -ul=moderator !reset $(eval a=`$(urlfetch http://twitch.center/customapi/delquote?token=privateTokenHere&clear=1)`;` `) All counts have been reset!
Similar to what I said in my first post, feel free to change the command names and responses of !addbeer, !addpee, !addjoint, and !reset just as long as the $(eval) variables remain untouched!