Nightbot random response

Hey @Miro!

This should do the job:

!addcom nightbot $(eval a=[`RESPONSE_1`,`RESPONSE_2`,`RESPONSE_3`];a[Math.floor(Math.random()*a.length)])

Replace the RESPONSES with your text, you can add as many response as you like, just don’t go over 500 characters for the entire command.

And you can add the following command to make sure Nightbot gives a response too if he’s mentioned with the @:

!addcom @nightbot -a=nightbot null
1 Like