Oh, then there’s nothing simpler than using the Quote API as regular, you just have to modify the quote list a tiny bit:
• !addshiny
:
$(eval a=`$(urlfetch https://twitch.center/customapi/addquote?token=PRIVATE_TOKEN&data=$(querystring))`;`$(channel) has a new shiny: $(query)!`)
• !shinies
:
$(eval u=`$(urlfetch json https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN)`.split(/\d+\.\s/);u.shift();t=u.length;s=[];l=u.pop();for(i=0;i<9;i++){s.push(u.splice(Math.floor(Math.random()*u.length),1));}`Here's a small selection of $(channel)'s shinies: ${s.join(`, `)}, and ${l}. Total: ${t} shinies. Consult the full list here: https://twitch.center/customapi/quote/list?token=PUBLIC_TOKEN`)
Don’t forget to replace the TOKEN
fields.
Assuming you already have at least 10 shinies, this should work just fine.