Nightbot random replies

I would like to know which command I use for nightbot to use random replies to a command?
For example: command: #atk - replies: mcgree, soldier 76, hanzo and etc.

How do I randomly answer a response only?

Not sure how many more entries you want to add, but you could do something like this:

(a[Math.floor(Math.random() * (a.length))]);)```

You could add more entries as long as you do it the same way (so surrounded by quotation marks, with a comma in between each) but there is a character limit on Nightbot, so if you have a lot more to add, it may be smarter to use a pastebin and use $(urlfetch).
Hope this helps.

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