NightDev Community Forums

Need help with a !myd command

Could anyone help me set up a !myd command so it looks like this?

49%20PM

@alwayzsleepy

Could you explain what this !myd command is supposed to do? Is it supposed to return a response to the user with a random integer? If so, what’s the range of integers that you want?

It is supposed to tell someone how long their “D” is, just a funny command i’ve seen and wanted to add to my chat. when people would type !myd it would say the for example the user who typed that commands name D is 0-15 inches and it will randomly pick a number between 0-15.

Copy and paste this into chat to create !myd

!addcom -cd=5 !myd @$(user)'s D is $(eval Math.floor(Math.random()*16)) inches

The $(eval) variable will return a random integer between 0 and 15, inclusive.

If I wanted to add the word inches after where would I put that?

Right after $(eval). Here’s the updated response.

!addcom -cd=5 !myd @$(user)'s D is $(eval Math.floor(Math.random()*16)) inches
1 Like

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