Help Randomizing Nightbot Reply in YouTube

Separate your jokes by ; and upload them to like this:

Then enter this into your chat (replace my raw Pastebin link with yours):

!commands add !randomjoke $(eval jokes = `$(urlfetch json`.split(";"); jokes[Math.floor(Math.random() * jokes.length)])

You can use a different character to separate your jokes as long as you change ; in the command.

1 Like