Added eslintrc config and updated all files to it

This commit is contained in:
2023-11-22 23:50:21 +01:00
parent 10771fd04e
commit 3d4fc1fccb
70 changed files with 1276 additions and 1234 deletions

View File

@@ -1,11 +1,11 @@
const { userMention, channelMention } = require('discord.js')
const { botLogChannel, color } = require('../../../config/options.json')
const { userMention, channelMention } = require("discord.js")
const { botLogChannel, color } = require("../../../config/options.json")
module.exports = {
name: 'vcJoinLeave',
description: 'Logs when a user joins or leaves a voice channel.',
type: 'event',
event: 'voiceStateUpdate',
name: "vcJoinLeave",
description: "Logs when a user joins or leaves a voice channel.",
type: "event",
event: "voiceStateUpdate",
/**
* @param { import('discord.js').VoiceState } oldState
@@ -18,10 +18,10 @@ module.exports = {
const guild = oldState.guild
const channel = guild.channels.cache.get(botLogChannel)
const embedColor = Number(color.replace('#', '0x'))
const embedColor = Number(color.replace("#", "0x"))
if (!channel) {
console.log(`[ERROR] Could not find channel used for voice channel join/leave logging.`)
console.log("[ERROR] Could not find channel used for voice channel join/leave logging.")
return
}