A bot for drawing random cards out of a deck. Standard (52 Cards) or stripped (32 Cards) decks are possible. You can decide if
it should shuffle joker in the deck or not. The command-prefix ! is changeable. You can draw one or multiple cards. For
more information visit Github: https://github.com/Vogaeael/drawCards.
At the moment, the bot isn't published and there isn't a running server you can add to your discord server. To use this bot you
have to host one yourself.
The Bots need the permission's to:
read messages(for reading your commands)manage messages(for a little easter egg ;) )write messages(for answering you)embed links(for the help)attach files(for showing the card as picture)read message history(for adding reactions if the answers should be minimized)add reactions(for adding reactions if the answers should be minimized)
The permission's integer is 124992. To add your bot to your server, you can use this link. You have to change the [clientId] to the client id of your bot:
https://discordapp.com/api/oauth2/authorize?client_id=[clientId]&permissions=124992&scope=bot
You need npm with the minimal version 12.
To develop you need npm. To install the dependencies:
npm installYou can copy the .env.dist file to .env.
You have to change the your.token to your generated bot-token and you can set the loglevel there.
cp .env.dist .envTo generate your own bot-token use this Tutorial.
Possible loglevel are:
infofatalerrordeprecateddebug
To compile the .ts files to .js files one time use:
yarn compileTo start a watcher which compile by changes use:
yarn watchFor running tests (at the moment there aren't any):
yarn testTo start the bot use:
npm startTo shuffle the deck one or multiple times:
!shuffle # to shuffle one time
!shuffle 1 # also to shuffle one time
!shuffle 3 # to shuffle three times
!shuffle 999 # to shuffle 8 times, because it is the maximumTo draw one or multiple cards.
!draw # for drawing one card
!draw 12 # for drawing twelve cards
!draw eee # would draw one card because one is default
!draw all # for drawing all remaining cardsTo know how many cards are remaining in the deck:
!cardsLeft, !cardsleft or !left
If you want to change back to the standard deck (52 cards):
!useStandardDeck or !usestandarddeck
If you want to change to as stripped deck (32 cards):
!useStrippedDeck or !usestrippeddeck
If you want that jokers are also in the deck:
!useJoker or !usejoker
If you want that jokers aren't in the deck:
!dontUseJoker or !dontusejoker
If you want your draw answers short and minimized:
!printMinimized or !printminimized
If you want your draw answers large and maximized:
!printMaximized or !printmaximized
If you want to know all possible designs:
!listDesigns or !listdesigns
If you want to change the design.
!setDesign jack-mc-gee # change to the design `jack-mc-gee`
!setdesign jack-mc-gee # change to the design `jack-mc-gee`
!setDesign eee # does nothing, because the design `eee` is unknown
!setDesign # does set the design to defaultIf you want to change the prefix from ! to something else.
!setPrefix bob # change the prefix to bob => "bobdraw" would be the new "draw"
!setprefix 4 # change the prefix to 4 => "4draw" would be the new "draw"
!setPrefix # without parameter it changes back to "!"If you want to see the help:
!help
By default, it uses a standard deck (52 cards) without a joker and print it minimized. The default prefix is !.
See the LICENSE file for license rights and limitations (MIT).