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

Asked Aug 20, 2021·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.

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! 🙂

2 replies

This should work

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

nice, i will try this, thanks alot :)