Added status command to discord bot
This commit is contained in:
@@ -4,6 +4,7 @@ import { getTOKEN, getGuildID, getApplicationID } from './utilities/configHandle
|
||||
import ping from './commands/ping.js';
|
||||
import join from './commands/join.js';
|
||||
import leave from './commands/leave.js';
|
||||
import status from './commands/status.js';
|
||||
// Debug
|
||||
import ModuleDebugBuilder from "./utilities/moduleDebugBuilder.js";
|
||||
const log = new ModuleDebugBuilder("bot", "app");
|
||||
@@ -47,6 +48,9 @@ client.on('interactionCreate', (interaction) => {
|
||||
case "leave":
|
||||
leave(interaction);
|
||||
break;
|
||||
case "status":
|
||||
status({ interaction: interaction });
|
||||
break;
|
||||
default:
|
||||
interaction.reply({ content: 'Command not found, try one that exists', fetchReply: true })
|
||||
.then((message) => log.DEBUG(`Reply sent with content ${message.content}`))
|
||||
|
||||
Reference in New Issue
Block a user