Please help me make this command

Asked Nov 12, 2024·1 reply·Last activity 1 year 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.

Hi guys i need help to make this command if i want to make a variable result and let nightbot pick any single random number, like: "user" size is xx cm

1 reply

Below is a command to generate a random number between 1 to 100 with the user requirement.

!commands add !random $(user) size is $(eval Math.floor((Math.random() * 100) + 1)) cm