Random response to a command

Asked Dec 2, 2020·3 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.

I want to seup a !mug command where people try to mug the person streaming and you have 2 responese either you get to mug them or not and have a low chance on mugging the streamer

3 replies

Hey @Loopy Beetle!

There are already thousands of similar topics, please use the search bar in the future.

The user has a 10% chance to mug the streamer:

!addcom !mug $(eval r=Math.floor(Math.random()*10); r==0?`$(user) managed to successfully mug $(channel)!`:`$(user) tried to mug $(channel) and miserably failed...`)

thanks i did i just wasn't sure how to adjust the commands to work for what i wanted it wasn't for lack of searching