Can someone reply with the script for a command that lets viewers add something to it, so when I do !next, it let’s me see what they added. For example: reacting to videos. The viewer can type !reactto and then they post a link to the video they want me to react to. Then I would type !theywant and I would show what they suggested. Like !reactto (this video) then I type !theywant (the video suggested).
Ehsankia’s quote list API can be used to set up a list of video suggestions that users can add to.
Click this link. It will generate three links and two tokens, a public token (8 characters long) and a private token (16 characters long). The public token is located within the first generated link. The private token is located within both the second and third generated links. The tokens are found after
token= and before
&data=$(querystring) Copy them and keep them somewhere safe!
I set up 3 commands below: !reactto which adds a user’s suggestion to the list, !next which shows the next suggestion (Nightbot will show the entry, and the entry will then be removed from the list), and !clear (mod-only) which clears the list. Either copy and paste these commands into chat or add them through the Nightbot dashboard. 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 manage the list)! Replace
PRIVATE_TOKEN with your private token.
!addcom -cd=5 !reactto $(eval `$(urlfetch http://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=Suggestion from $(user): $(query))`.includes(`Successfully added entry`)?`@$(user) Your video suggestion has been added to the list!`:`@$(user) Try again.`) !addcom -cd=5 !next $(eval a=`$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&data=1)`;a!=`Invalid entry index`?a.split(`: `):`No more video suggestions!`) !addcom -ul=mod !clear $(eval `$(urlfetch http://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&clear=1)`==`All entries have been deleted`?`$(user) has cleared the video suggestions list!`:`@$(user) Try again.`)
!reactto [video name or link]
Ok, how would close video suggestions and open them back up.
I actually don’t know if you mentioned that.
To block new suggestions:
!editcom !reactto -ul=owner
To allow for new suggestions:
!editcom !reactto -ul=everyone
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.