mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Join draw-cards with \n instead
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "85.5.0",
|
||||
"version": "85.5.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user