Pastebin and Shoutouts

Asked May 12, 2025·3 replies·Last activity 1 year 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.

Is there a way to combine pastebin and end with recommending the twitch user's channel?

For example

1) $(touser), $(eval a="$(urlfetch json pastebin link)".split(";");a[Math.floor(Math.random()*a.length)])
2) $(twitch $(touser) "Follow {{displayName}} over at {{url}}. They were last playing {{game}}")

3 replies

I'm not sure what you're asking exactly, but you should be able to combine those into a single command if they're presented like described (separately). You won't be able to run urlfetch inside eval inside twitch though, as that's too many layers deep.

Very sorry for the late reply... So I can do something like:

$(touser), $(eval a=“$(urlfetch json pastebin link)”.split(“;”);a[Math.floor(Math.random()*a.length)]) Follow {{displayName}} over at {{url}}. They were last playing {{game}}”)

Would this work as a single line command?

Something like that looks like it would work, since it is only 2 levels deep.