Special Command Question

Hey! So I’m new to Nightbot; trying to switch from Moobot. The one literal thing keeping me on Moobot is that I can turn the 8ball command into a feature where users can type !raccoon and get a random raccoon fact.
Sounds silly but I love it. When I try to implement a similar command on Nightbot, there is a limit to how many characters I can put in the command details and it’s preventing me from having more than ~3 responses.

Is there any way that I can make this type of command in a different way by adding more to the character limit or using another cool Nightbot variable?

Would really love some assistance, thanks!


Look at this pastebin file I use for a trivia command. Note the following aspects of the file:

  • The file starts and ends with square brackets []
  • Each trivia fact is bounded by backticks ``
  • The facts are separated by commas.

Go to https://pastebin.com and create a file for your !raccoon command that follows the same aspects as detailed above. Once you create it, copy and paste the following command setup into your Nightbot dashboard to create the command. Replace RAW_PASTE_LINK with the raw paste link to your pastebin file (the link looks like https://pastebin.com/raw/blahblah):

$(eval a=$(urlfetch json RAW_PASTE_LINK);a[Math.floor(Math.random()*a.length)])
1 Like

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