Hey @chloelunn9!
Yes, use ehsankia’s Quote System API, just the other way than usual:
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:
$(urlfetch https://twitch.center/customapi/quote?token=PUBLIC_TOKEN&data=$(querystring))
$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(querystring))
$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&data=$(querystring))
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.
For your viewers to add items to the list, use the following command:
• !request
:
$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(user) - $(querystring))
To pick an item from the list of requests and remove it, make sure these commands userlevels are set to moderator:
• !pick
:
$(urlfetch https://twitch.center/customapi/quote?token=PUBLIC_TOKEN)
• _pick
:
$(eval d=`$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&data=$(querystring))`; q=`$(query)`.split(` `); q.shift(); q.join(` `);)
_pick
is the alias of !pick
, therefore you need to write _pick
in the alias field of !pick
.
If you wish to empty the entire list of request, set this command’s userlevel to moderator:
• !resetrequests
:
$(urlfetch https://twitch.center/customapi/delquote?token=PRIVATE_TOKEN&clear=1)
UPDATE: if you wish to add a limit of requests by users, see [CustomAPI] Quote system