Skip to content

Is relocating of event listeners available? #8

Description

@dmnsea

Shortly:
Is it possible to move bot.onText and others bot.on event listeners to another JS file? Making some structure, when few related commands(even listeners) will be placed in one file, and another few - in another file, and finally include these commands into main script where bot initialized with something like mybot.useCommands(ModuleWithCommands1, Module2, Module3) ?

Full question is on StackOverflow: https://stackoverflow.com/questions/64318854/how-to-split-long-list-of-commands-to-different-files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions