A command to give one of two option

Asked Jan 29, 2020·4 replies·Last activity 6 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.

Hello,

i want a command do give me one of two or more options like:

!noob and the bot will say user is a noob or user is not a noob

can i do with nightbot or streamelements?

thanks for the help

4 replies

Nightbot command:

!addcom -cd=5 !noob $(user) is $(eval Math.random()<0.5?`not`:` `) a noob

the command works and thanks for that, but in 16 times gave me 15 times is a noob and 1 time is not a noob.. can i change de 0,5 to 1 to give more is not a noob?

Math.random() returns a decimal between 0 and 1 and compares it to 0.5. It is a "fair" split between the two outcomes. You just have bad luck at the moment.

yes, i have notice that, thank you so much