Nightbot Command with Multiple Random Outputs

I want to create a “random facts” command so every time a viewer types “!randomfact”, Nightbot will reply with a random fact. Anyone know how I would format this? And, is there an unlimited number of facts I can add to this command?

If you have a small set of random facts you could use the eval variable to accomplish this. Check out the 8ball example at https://docs.nightbot.tv/commands/variables/eval

I use the quote system api for that: [CustomAPI] Quote system

The default command keyword is “quote” or “quotes” but I actually created two separate commands using the same api, one for “!quote” and another for “!joke” (you can go to my channel and test it). You can customize it by changing the keyword to be whatever it is that you want, so you could easily change it to “randomfact”. :wink:

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