aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-03-26 17:53:07 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-03-26 17:53:07 -0400
commit7e814d36e97bc3a7a17dcde4b5b373e647c6f6d0 (patch)
treeedc1db8fb415d3e001443c73e3b84e327c96e9f9 /commands
parentd55e74693da3c7b2705d67aa1880baaa0dcd1790 (diff)
downloadDLAP-7e814d36e97bc3a7a17dcde4b5b373e647c6f6d0.tar.gz
DLAP-7e814d36e97bc3a7a17dcde4b5b373e647c6f6d0.tar.bz2
DLAP-7e814d36e97bc3a7a17dcde4b5b373e647c6f6d0.zip
Some tweaks
Diffstat (limited to 'commands')
-rw-r--r--commands/control.js8
-rw-r--r--commands/help.js11
2 files changed, 12 insertions, 7 deletions
diff --git a/commands/control.js b/commands/control.js
index aa07991..f5846e2 100644
--- a/commands/control.js
+++ b/commands/control.js
@@ -1,5 +1,6 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
-const { MessageEmbed, MessageActionRow, MessageButton} = require("discord.js");
+const { MessageEmbed, MessageActionRow, MessageButton } = require("discord.js");
+
module.exports = {
data: new SlashCommandBuilder()
@@ -10,13 +11,16 @@ module.exports = {
.setAuthor({name:`${bot.user.username} Control Panel`, iconURL:bot.user.avatarURL()})
.addField('Currently Playing', 'audio file here')
.addField('Next Music', '(a possible feature?)')
+ .setColor('#0066ff')
+
const controlButtons = new MessageActionRow()
.addComponents(
new MessageButton()
.setStyle('PRIMARY')
- .setLabel('Pause/Play')
+ .setLabel('Pause')
.setCustomId('soon')
);
+
return interaction.reply({embeds:[controlEmbed], components:[controlButtons]});
},
}; \ No newline at end of file
diff --git a/commands/help.js b/commands/help.js
index b4d2d86..67ed896 100644
--- a/commands/help.js
+++ b/commands/help.js
@@ -1,17 +1,18 @@
const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageEmbed } = require("discord.js");
+const { AudioResource } = require("@discordjs/voice");
const config = require("../config.json");
module.exports = {
data: new SlashCommandBuilder()
.setName('help')
- .setDescription('Lists commands for the bot.'),
- async execute(interaction, bot) {
+ .setDescription('Lists the commands'),
+ async execute(interaction, bot, audio) {
const helpEmbed = new MessageEmbed()
.setAuthor({name:`${bot.user.username} Help`, iconURL:bot.user.avatarURL()})
- //.setDescription(`Currently playing \`${audio}\`.`)
- .addField('Public Commands', `${config.prefix}help\n${config.prefix}ping\n${config.prefix}git\n${config.prefix}playing\n${config.prefix}about\n`, true)
- .addField('Bot Owner Only', `${config.prefix}join\n${config.prefix}resume\n${config.prefix}pause\n${config.prefix}skip\n${config.prefix}leave\n${config.prefix}stop\n`, true)
+ .setDescription(`Currently playing \`${audio}\`.`)
+ .addField('Public Commands', `/help\n/ping\n/about\n`, true)
+ .addField('Bot Owner Only', `/join\n/control\n/stop\n`, true)
.setFooter({text:'© Copyright 2020-2022 Andrew Lee. Licensed with GPL-3.0.'})
.setColor('#0066ff')