Command Question

Is there a way i can add a command to where it would roll a random number say 1-50. Like !roll or !toss !random etc… and it will say a random number from 1-50. Ty in advance

You can use eval for this like so:

!commands add !roll The roll is $(eval Math.floor(Math.random() * 50) + 1 )

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