Help with Custom Command

Asked Nov 6, 2020·2 replies·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.

I would like to make a command of yes and no, for example if I put !(the name of the command) the nightbot can answer aleatory between yes or no, can you help me?

2 replies

Try this:

!addcom !command_name $(eval A=[`Yes`,`No`];A[Math.floor(Math.random()*2)])
Quirky Fox said:
!addcom !command_name $(eval A=[Yes,No];A[Math.floor(Math.random()*2)])

It worked, thanks c: