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?
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?