From 8c2193c1e489aa68df5317531f9898f9f335900d Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 25 Sep 2018 14:02:37 +0000 Subject: [PATCH] Fix mafia and wizard convention --- commands/games/mafia.js | 4 ++-- commands/games/wizard-convention.js | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/games/mafia.js b/commands/games/mafia.js index 25345d3c..77576a18 100644 --- a/commands/games/mafia.js +++ b/commands/games/mafia.js @@ -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. diff --git a/commands/games/wizard-convention.js b/commands/games/wizard-convention.js index 7d3f5547..e9a4ddcd 100644 --- a/commands/games/wizard-convention.js +++ b/commands/games/wizard-convention.js @@ -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. diff --git a/package.json b/package.json index 58025385..4342a0ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "91.12.1", + "version": "91.12.2", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {