PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
785 stars 163 forks source link

Dynamicly add command #429

Closed natir closed 11 months ago

natir commented 11 months ago

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?