Help a rooked with UrlFetch command

I have very little experience with coding, and even less with nightbot, streaming and chat bots.

What i am trying to do is create a command, (!joke) that will pull and post a random joke from a list of jokes that are stored on a txt file on a webserver.

I expect that i need to use the urlfetch variable, but besides this, i have no idea what i need to do.
Could a kind soul in here help me out with a few pointers?

Hiya, to make it easier, you don’t need a webserver for this. For your example you could store your jokes in a pastebin file, and with a combination of $(urlfetch) and $(eval) Nightbot can grab a random value of the list.

For an example look here: Riddle commands in the Chat

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