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,44 +1,44 @@
const { SlashCommandBuilder, ChannelType } = require('discord.js');
const { color } = require('../config/options.json');
const { SlashCommandBuilder, ChannelType } = require("discord.js")
const { color } = require("../config/options.json")
module.exports = {
name: 'help',
description: 'Help command',
type: 'slash',
name: "help",
description: "Help command",
type: "slash",
data: new SlashCommandBuilder()
.setName('help')
.setDescription('Help command')
.setName("help")
.setDescription("Help command")
.setDMPermission(true),
/** @param { import('discord.js').ChatInputCommandInteraction } interaction */
async execute(interaction) {
await interaction.deferReply({ ephemeral: true });
await interaction.deferReply({ ephemeral: true })
const embedColor = Number(color.replace('#', '0x'));
const embedColor = Number(color.replace("#", "0x"))
await interaction.editReply({
embeds: [{
title: 'Commands',
title: "Commands",
description: "List of commands",
fields: [
{
name: '/check',
value: 'Check the stats of a player'
name: "/check",
value: "Check the stats of a player"
},
{
name: '/reqs',
value: 'Check the requirements of the guild'
name: "/reqs",
value: "Check the requirements of the guild"
},
{
name: '/update',
value: 'Update\'s your roles'
name: "/update",
value: "Update's your roles"
},
{
name: '/help',
value: 'Shows this message'
name: "/help",
value: "Shows this message"
}
],
color: embedColor,
@@ -47,10 +47,10 @@ module.exports = {
},
footer: {
icon_url: interaction.guild.iconURL({ dynamic: true }),
text: interaction.guild.name + ' | Developed by: @Taken#0001'
text: interaction.guild.name + " | Developed by: @Taken#0001"
}
}]
});
})
}
};
}