I need a command that activates random commands

I already use Quote API for quotes that my viewers find funny, but now I’m trying to make a command that will bring up a random inspirational quote, can’t use the trick for 8ball cause you can only use so many characters, so I figured the best way to do it is to have a command that activates a random command I placed on it’s list, to bring up a random quote

Which then activates a random command I put on it’s list, like !IQuote[1-10]

Unless someone has a better idea, new to this.

What you can do is create a Pastebin file (at https://pastebin.com) that contains all of your quotes. Look at one of my pastes I use for a trivia command to get an idea of how to format your quote list. What’s important is that each item is bound by quotation marks ("") and separated by commas. Once you’ve created your paste, copy and paste this into chat:

!addcom -cd=5 !iquote $(eval a=[$(urlfetch json yourQuotesPasteRawLink)];a[Math.floor(Math.random()*a.length)])

Replace yourQuotesPasteRawLink with the link to your quotes paste (make sure it’s the raw link, it should look like https://pastebin.com/raw/whatever)

1 Like

I’ll give this a try :smiley:

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