mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-10 10:43:06 +00:00
Added Eslint GitHub Action and Prettier
This commit is contained in:
parent
d8df48438d
commit
512b7526ab
21 changed files with 480 additions and 293 deletions
|
@ -18,7 +18,7 @@ const rulesEmbed = new EmbedBuilder()
|
|||
'https://cdn.discordapp.com/avatars/1052017329376071781/922947c726d7866d313744186c42ef49.webp',
|
||||
})
|
||||
.setDescription(
|
||||
'These are the rules for the server. Please read and follow them carefully.'
|
||||
'These are the rules for the server. Please read and follow them carefully.',
|
||||
)
|
||||
.addFields(
|
||||
{
|
||||
|
@ -77,9 +77,9 @@ const rulesEmbed = new EmbedBuilder()
|
|||
'Post content in the right channels. Off-topic content may be moved or deleted.',
|
||||
},
|
||||
{
|
||||
name: '**Rule #12: Follow Discord\'s ToS and Community Guidelines**',
|
||||
name: '**Rule #12: Follow the Discord Terms of Service and Community Guidelines**',
|
||||
value:
|
||||
'All members must adhere to Discord’s Terms of Service and Community Guidelines.',
|
||||
'All members must adhere to the Discord Terms of Service and Community Guidelines.',
|
||||
},
|
||||
{
|
||||
name: '**Rule #13: Moderator Discretion**',
|
||||
|
@ -90,7 +90,7 @@ const rulesEmbed = new EmbedBuilder()
|
|||
name: '**Disclaimer:**',
|
||||
value:
|
||||
'**These rules may be updated at any time. It is your responsibility to review them regularly. Moderators and admins have the authority to enforce these rules and take appropriate action.**',
|
||||
}
|
||||
},
|
||||
)
|
||||
.setTimestamp()
|
||||
.setFooter({
|
||||
|
|
|
@ -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`,
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
@ -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.`,
|
||||
);
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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] });
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue