There is a _% chance of (user) doing (user says sentence)

Asked Feb 28, 2021·1 reply·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 want to make a command that has the user say something along the lines of

!chance of user says something

And having nightbot reply with

There is a random number% chance of users sentence

Got example
!chance of winning the lottery
There is a _% of (user) winning the lottery

Or !chance of getting a girlfriend
There is a _% chance of (user) getting a girlfriend

Does anyone think they can help me out?

1 reply

This picks a random number from 0 to 100.

There is a $(eval Math.round(Math.random()*100))% chance of $(user) $(query)