How to add command

I want to have a command that picks a random number from like, 1-20 !pickanumber please help me :grimacing:

@elddirgray Hi, there are already lots of random number generator in the forum, better checking them before asking. Anyways,

!addcom -cd=5 !pickanumber $(eval number=Math.floor(Math.random() * 20) + 1; "@$(user) I pick " + number)

Usage

Ritik: !PickANumber
Nightbot: @Ritik I pick 10

Regards

1 Like

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