Added status command to discord bot

This commit is contained in:
Logan Cusano
2022-12-11 23:00:55 -05:00
parent 668c9a9259
commit 6756a5e632
3 changed files with 39 additions and 1 deletions

View File

@@ -26,11 +26,17 @@ const leaveCommand = new SlashCommandBuilder()
.setDescription("Leave current voice channel")
.toJSON();
const statusCommand = new SlashCommandBuilder()
.setName("status")
.setDescription("Returns if the bot is connected to a channel or not")
.toJSON();
export default async function registerCommands(callback){
const commands = [
pingCommand,
joinCommand,
leaveCommand
leaveCommand,
statusCommand
];
try {