This commit is contained in:
Dragon Fire
2020-05-17 21:42:49 -04:00
parent a85fcee021
commit ac75c3c193
2 changed files with 3 additions and 2 deletions
+3 -1
View File
@@ -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;
-1
View File
@@ -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 {