aboutsummaryrefslogtreecommitdiff
path: root/commands/about.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-03-26 13:43:03 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-03-26 13:43:03 -0400
commitd55e74693da3c7b2705d67aa1880baaa0dcd1790 (patch)
tree2588b36a5510adf40295ad1389964e194cb9a742 /commands/about.js
parent9e2ba5ceb9e7d1e8a4305be36205dde3cfb5b0b9 (diff)
downloadDLAP-d55e74693da3c7b2705d67aa1880baaa0dcd1790.tar.gz
DLAP-d55e74693da3c7b2705d67aa1880baaa0dcd1790.tar.bz2
DLAP-d55e74693da3c7b2705d67aa1880baaa0dcd1790.zip
New interaction handler; Merged git and about
Diffstat (limited to 'commands/about.js')
-rw-r--r--commands/about.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/commands/about.js b/commands/about.js
new file mode 100644
index 0000000..033c44f
--- /dev/null
+++ b/commands/about.js
@@ -0,0 +1,28 @@
+const { SlashCommandBuilder } = require('@discordjs/builders');
+const { MessageEmbed, version, MessageActionRow, MessageButton } = require("discord.js");
+
+module.exports = {
+ data: new SlashCommandBuilder()
+ .setName('about')
+ .setDescription('Information about the bot'),
+ async execute(interaction, bot) {
+ const aboutEmbed = new MessageEmbed()
+ .setAuthor({name:`About ${bot.user.username}`, iconURL:bot.user.avatarURL()})
+ .addField('Information', 'A Discord bot that plays local mp3 audio tracks.')
+ .addField('Original Creator', 'Andrew Lee (Alee#4277)')
+ .addField('Frameworks', `Discord.JS ${version} + Voice`)
+ .addField('License', 'GNU General Public License v3.0')
+ .setFooter({text:'© Copyright 2020-2022 Andrew Lee. Licensed with GPL-3.0.'})
+ .setColor('#0066ff')
+
+ const srcOrig = new MessageActionRow()
+ .addComponents(
+ new MessageButton()
+ .setStyle('LINK')
+ .setLabel('Original Source Code')
+ .setURL('https://github.com/Alee14/DLMP3'),
+ );
+
+ return interaction.reply({ embeds:[aboutEmbed], components:[srcOrig] });
+ },
+}; \ No newline at end of file