mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix Lint
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user