Pastebin and Shoutouts

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}}”)

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?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.