diff --git a/src/bot.ts b/src/bot.ts index 4540f6b..e5f8637 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -10,7 +10,7 @@ import { } from 'discord.js'; import { Logger } from './utils/log'; import { config } from './utils/config'; -import { CommandManager } from './commands'; +import { Command, CommandCategory, CommandManager } from './commands'; import { DatabaseManager } from './modules/db'; type BotEventListeners = { @@ -83,6 +83,14 @@ export class Bot { await this.client.login(config.token); } + public getCommands(): Array { + return this.cmdMgr.getAll(); + } + + public getCategories(): Array { + return this.cmdMgr.getCategories(); + } + /* event listeners */