Added Eslint GitHub Action and Prettier

This commit is contained in:
Ahmad 2024-12-21 18:13:18 -05:00
parent d8df48438d
commit 512b7526ab
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
21 changed files with 480 additions and 293 deletions

View file

@ -10,7 +10,9 @@ const command: Command = {
.setName('ping')
.setDescription('Check the latency from you to the bot'),
execute: async (interaction) => {
await interaction.reply(`Pong! Latency: ${Date.now() - interaction.createdTimestamp}ms`);
await interaction.reply(
`Pong! Latency: ${Date.now() - interaction.createdTimestamp}ms`,
);
},
};

View file

@ -11,7 +11,7 @@ const command: Command = {
.setDescription('Provides information about the server.'),
execute: async (interaction) => {
await interaction.reply(
`The server ${interaction!.guild!.name} has ${interaction!.guild!.memberCount} members and was created on ${interaction!.guild!.createdAt}. It is ${new Date().getFullYear() - interaction!.guild!.createdAt.getFullYear()!} years old.`
`The server ${interaction!.guild!.name} has ${interaction!.guild!.memberCount} members and was created on ${interaction!.guild!.createdAt}. It is ${new Date().getFullYear() - interaction!.guild!.createdAt.getFullYear()!} years old.`,
);
},
};

View file

@ -19,7 +19,7 @@ const command: Command = {
option
.setName('user')
.setDescription('The user whose information you want to retrieve.')
.setRequired(true)
.setRequired(true),
),
execute: async (interaction) => {
const userOption = interaction.options.get('user');
@ -60,7 +60,7 @@ const command: Command = {
{
name: 'Number of Bans',
value: memberData?.numberOfBans.toString() || '0',
}
},
);
await interaction.reply({ embeds: [embed] });
},