Skip to content

Template Encourages too much Redundancy #56

@Kaisarion

Description

@Kaisarion

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions