HELP! I need to make a command that picks a random response from a list

Asked Aug 19, 2021·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi, I’m trying to create a command where you have a list of responses that you want Nightbot to choose from and every time you run the command a random response that you put in the list gets chosen. Any help would be GREATLY appreciated.

1 reply

Hi please try searching for topics before you ask to see if you can find anything. There are multiple examples of exactly what your asking for but the simplest is probably in the help docs https://docs.nightbot.tv/variables/eval look at the 8ball command for an example of how to do it.