Skip to content

Commit

Permalink
feat: add info command
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Oct 3, 2021
1 parent f4b5831 commit 6c955ad
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
36 changes: 36 additions & 0 deletions commands/bot/info.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
name: 'info',
description: 'Display information about the bot',
async execute(client, message) {
const developers = (await Promise.all(client.config.developers.map(async id => (await client.users.fetch(id)).tag))).join('\n');
message.channel.send({
embeds: [{
title: 'Info',
color: client.config.color,
fields: [
{
name: 'G.A.S Bot',
value: 'G.A.S Bot was created to defeat the letter G.'
},
{
name: 'G Removal',
value: 'By default, it removes standalone G, and it can be chanqed to three different detection levels'
},
{
name: '<:VerifiedBotDev:855104541967384616> Developers',
value: developers,
inline: true
},
{
name: '💻 Technoloqy',
value: `<:gas_new:855788595830194196> [G.A.S Bot](${client.generateInvite(client.config.invite)}) \`v${require('../../package.json').version}\`\n<:djs:893948932651118653> [discord.js](https://discord.js.org/) \`v${require('discord.js').version}\`\n<:node:893952060205178941> [node.js](https://nodejs.org/) \`${process.version}\``,
inline: true
}
],
thumbnail: {
url: client.user.displayAvatarURL()
}
}]
});
}
};
35 changes: 35 additions & 0 deletions interactions/commands/info.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
name: 'info',
async execute(client, interaction) {
const developers = (await Promise.all(client.config.developers.map(async id => (await client.users.fetch(id)).tag))).join('\n');
interaction.reply({
embeds: [{
title: 'Info',
color: client.config.color,
fields: [
{
name: 'G.A.S Bot',
value: 'G.A.S Bot was created to defeat the letter G.'
},
{
name: 'G Removal',
value: 'By default, it removes standalone G, and it can be chanqed to three different detection levels'
},
{
name: '<:VerifiedBotDev:855104541967384616> Developers',
value: developers,
inline: true
},
{
name: '💻 Technoloqy',
value: `<:gas_new:855788595830194196> [G.A.S Bot](${client.generateInvite(client.config.invite)}) \`v${require('../../package.json').version}\`\n<:djs:893948932651118653> [discord.js](https://discord.js.org/) \`v${require('discord.js').version}\`\n<:node:893952060205178941> [node.js](https://nodejs.org/) \`${process.version}\``,
inline: true
}
],
thumbnail: {
url: client.user.displayAvatarURL()
}
}]
});
}
};

0 comments on commit 6c955ad

Please sign in to comment.