diff --git a/commands/random/draw-cards.js b/commands/random/draw-cards.js index ed73a155..7c843df8 100644 --- a/commands/random/draw-cards.js +++ b/commands/random/draw-cards.js @@ -32,11 +32,11 @@ module.exports = class DrawCardsCommand extends Command { this.deck = null; } - run(msg, { jokers }) { + run(msg, { amount, jokers }) { if (!this.deck) this.deck = this.generateDeck(); let cards = this.deck; if (!jokers) cards = cards.filter(card => !card.includes('Joker')); - return msg.reply(shuffle(cards).join(', ')); + return msg.reply(shuffle(cards).slice(0, amount).join(', ')); } generateDeck() {