mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 22:27:44 +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',
|
label: 'hand size',
|
||||||
prompt: 'How many cards do you want to draw?',
|
prompt: 'How many cards do you want to draw?',
|
||||||
type: 'integer',
|
type: 'integer',
|
||||||
max: 20,
|
max: 10,
|
||||||
min: 1
|
min: 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -36,7 +36,7 @@ module.exports = class DrawCardsCommand extends Command {
|
|||||||
if (!this.deck) this.deck = this.generateDeck();
|
if (!this.deck) this.deck = this.generateDeck();
|
||||||
let cards = this.deck;
|
let cards = this.deck;
|
||||||
if (!jokers) cards = cards.filter(card => !card.includes('Joker'));
|
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() {
|
generateDeck() {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "85.5.0",
|
"version": "85.5.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user