start-bot.ts requires the importation of command classes through the index.ts.
then, there is a command array created:
let commands: Command[] = [
// Commands
// Chat Commands
// _Admin
new CreateRoleCommand(),
new DeleteRoleCommand(),
// _Info
new CreditsCommand(),
new AddBotCommand(),
// _Moderation
new AssignRoleCommand(),
new BanCommand(),
new HelpCommand(),
new StatusCommand(),
// Message Context Commands
new ViewDateSent(),
// User Context Commands
new ViewDateJoined(),
// TODO: Add new commands here
]
You can see the problem if we have over 100 commands, the file would turn into 400-500 lines easily.
Any future dynamic solution to this? It leaves our hands tied.
start-bot.ts requires the importation of command classes through the index.ts.
then, there is a command array created:
You can see the problem if we have over 100 commands, the file would turn into 400-500 lines easily.
Any future dynamic solution to this? It leaves our hands tied.