command support :)

Asked May 12, 2024·1 reply·Last activity 2 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Basically im making a rizz command where it will just send a random rizz message from this pastebin script thingy (https://pastebin.com/wTuyU2n5) the command is $(eval a=$(urlfetch json https://pastebin.com/wTuyU2n5);a[parseInt(decodeURIComponent($(querystring)))-1]||a[Math.floor(Math.random()*a.length)]) and it gives the error "Unexpected token '<' [<context>:1:3]" would appreciate some help 🙂

1 reply

Here is a revised code to get a random message from the pastebin, I had to edit your pastebin to change the quotes as they included ' in some of them

I also used the raw version

$(eval a=$(urlfetch json https://pastebin.com/raw/nC1LScZy);a[Math.floor(Math.random()*a.length)])