Skip to content

Dynamicly add command #429

@natir

Description

@natir

Hello thanks for your work.

I'd like to be able to load a certain command via a configuration file.

To do this, I need to create my functions while my script is running. One idea I've explored is to create anonymous functions and add them to my bot during launch, but it seems impossible to create anonymous asynchronous functions.

Do you have an idea for adding commands linked to a function not previously defined?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions