Created
November 19, 2020 17:21
-
-
Save mkosler/eaa4c16fd03161dbbcbd201dfd662ff7 to your computer and use it in GitHub Desktop.
Nightbot variable dice roll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!commands edit !roll $(eval var c = isNaN(parseInt(`$(query)`)) ? 20 : parseInt(`$(query)`); `d${c}: ${Math.floor(Math.random() * c) + 1}`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment