Randon Response Command

Asked Apr 4, 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.

How do I get Nightbot to send a random response when a chat command is activated?

1 reply

Use this format

$(eval a=[`Response1`,`Response2`,`Responsex`,`...`];a[Math.floor(Math.random()*a.length)])

Try searching on the forums in the future before posting as more likely than not your question has already been answered before.