mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
Fix mafia and wizard convention
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { Collection } = require('discord.js');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { shuffle, wait, awaitPlayers } = require('../../util/Util');
|
||||
const { shuffle, delay, awaitPlayers } = require('../../util/Util');
|
||||
const { questions, stories } = require('../../assets/json/mafia');
|
||||
|
||||
module.exports = class MafiaCommand extends Command {
|
||||
@@ -90,7 +90,7 @@ module.exports = class MafiaCommand extends Command {
|
||||
Who is this mysterious Mafia member? You have one minute to decide.
|
||||
`);
|
||||
}
|
||||
await wait(60000);
|
||||
await delay(60000);
|
||||
const playersArr = Array.from(players.values());
|
||||
await msg.say(stripIndents`
|
||||
Who do you think is the Mafia member? Please type the number.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { Collection } = require('discord.js');
|
||||
const { stripIndents } = require('common-tags');
|
||||
const { shuffle, wait, awaitPlayers } = require('../../util/Util');
|
||||
const { shuffle, delay, awaitPlayers } = require('../../util/Util');
|
||||
const { questions, stories } = require('../../assets/json/wizard-convention');
|
||||
|
||||
module.exports = class WizardConventionCommand extends Command {
|
||||
@@ -90,7 +90,7 @@ module.exports = class WizardConventionCommand extends Command {
|
||||
Who is this mysterious dragon? You have one minute to decide.
|
||||
`);
|
||||
}
|
||||
await wait(60000);
|
||||
await delay(60000);
|
||||
const playersArr = Array.from(players.values());
|
||||
await msg.say(stripIndents`
|
||||
Who do you think is the dragon? Please type the number.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "91.12.1",
|
||||
"version": "91.12.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user