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,21 +1,21 @@
const { userMention } = require('discord.js');
const { color, botLogChannel } = require('../../../config/options.json');
const { userMention } = require("discord.js")
const { color, botLogChannel } = require("../../../config/options.json")
module.exports = {
name: 'logNewJoins',
description: 'Logs new joins',
type: 'event',
event: 'guildMemberAdd',
name: "logNewJoins",
description: "Logs new joins",
type: "event",
event: "guildMemberAdd",
/** @param { import('discord.js').GuildMember } member */
execute(member) {
const channel = member.guild.channels.cache.get(botLogChannel);
const embedColor = Number(color.replace('#', '0x'));
const channel = member.guild.channels.cache.get(botLogChannel)
const embedColor = Number(color.replace("#", "0x"))
if (!channel) {
console.log(`[ERROR] Could not find channel used for new join logging.`);
return;
console.log("[ERROR] Could not find channel used for new join logging.")
return
}
channel.send({