Fix mafia and wizard convention

This commit is contained in:
Daniel Odendahl Jr
2018-09-25 14:02:37 +00:00
parent 928b659acf
commit 8c2193c1e4
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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.
+2 -2
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "91.12.1",
"version": "91.12.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {