khazhyk / dango.py

discord.py@rewrite version for spoo.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dango

Discord.py commands ext extensions + plugin collection.

Testing

pytest

Plugin system

  • Cogs marked with @dcog are loaded on extension load.
  • These cogs are added to the bot via add_plugin(cls)
    • If a plugin has no dependencies, we can load it immediately.
    • If all a plugin's dependencies are loaded, we can load it immediately
    • If at least one of a plugin's dependencies are unloaded, defer it. On plugin load, we can check if our dependencies are now loaded, and if so load ourselves.
    • For debugging, we can call done_loading once we thing everything should be loaded, and warn if we see pending plugins. (This could be due to missing plugin, circular dependencies, etc.)

About

discord.py@rewrite version for spoo.py

License:MIT License


Languages

Language:Python 100.0%