NightDev Community Forums

Randon Response Command

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

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.

1 Like