Help Randomizing Nightbot Reply in YouTube

Separate your jokes by ; and upload them to https://pastebin.com like this: https://pastebin.com/raw/3EswB51V

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

!commands add !randomjoke $(eval jokes = `$(urlfetch json https://pastebin.com/raw/3EswB51V)`.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