From 0d5f942c9f5f35ea12059d28efabde7e552976fd Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 26 Jul 2018 21:41:41 -0400 Subject: [PATCH] Fix --- commands/random/draw-cards.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {