Is it possible to make a command, that only reacts/writes something x% of the time when someone writes it?

Hello there, relatively new to this, and i could not really figure that out, i would like to make a command, that looks in chat for " !add " and if it was written has a 2% chance of reacting to it, not really sure how to set this up, if possible, and the search did not give me comparable questions unfortunately, thank you in advance! :slight_smile:

This should work

$(eval Math.floor(Math.random()*100+1)<=2?`Response`:` `)
1 Like

nice, i will try this, thanks alot :slight_smile:

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