Help with a command

Asked Apr 5, 2020·1 reply·Last activity 6 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.

Okay,i want have a command !size and it tells you your length and width but the numbers are random every time 🤣 i know its weird but its funny to me

rofl.png

1 reply

Here's a template. Feel free to edit the numbers as you wish.

!addcom -cd=5 !size $(eval function r(x,y){return Math.floor(Math.random()*(Math.abs(y-x)+1))+x;}`$(user) has a length of ${r(0,100)} and a width of ${r(0,10)}`)