diff --git a/commands/games-sp/math-quiz.js b/commands/games-sp/math-quiz.js index 822d2c5a..1e0b5432 100644 --- a/commands/games-sp/math-quiz.js +++ b/commands/games-sp/math-quiz.js @@ -42,7 +42,9 @@ module.exports = class MathQuizCommand extends Command { async run(msg, { difficulty }) { const operation = operations[Math.floor(Math.random() * operations.length)]; - let answer, value1, value2; + let answer; + let value1; + let value2; switch (operation) { case '+': value1 = Math.floor(Math.random() * maxValues[difficulty]) + 1; diff --git a/commands/phone/admin-phone.js b/commands/phone/admin-phone.js index 745f8548..fddf6e8a 100644 --- a/commands/phone/admin-phone.js +++ b/commands/phone/admin-phone.js @@ -26,7 +26,6 @@ module.exports = class AdminPhoneCommand extends Command { async run(msg, { channelID }) { const inCall = this.client.phone.some(call => [call.origin.id, call.recipient.id].includes(msg.channel.id)); if (inCall) return msg.say('This channel is already in a phone call.'); - if (channelID === 'count') return msg.say(`☎️ **${channels.size}** currently open lines.`); const channel = this.client.channels.cache.get(channelID); if (!channel || !channel.guild) return msg.reply('This channel does not exist.'); try {