Join draw-cards with \n instead

This commit is contained in:
Dragon Fire
2018-07-26 21:45:21 -04:00
parent 0d5f942c9f
commit 2a17d82b61
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ module.exports = class DrawCardsCommand extends Command {
label: 'hand size',
prompt: 'How many cards do you want to draw?',
type: 'integer',
max: 20,
max: 10,
min: 1
},
{
@@ -36,7 +36,7 @@ module.exports = class DrawCardsCommand extends Command {
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).slice(0, amount).join(', '));
return msg.reply(shuffle(cards).slice(0, amount).join('\n'));
}
generateDeck() {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "85.5.0",
"version": "85.5.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {