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

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?

This picks a random number from 0 to 100.

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

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