blob: 033c44fa2fd1f843e540f1d94e1f83ab780d3a60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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] });
},
};
|