Savant-Dev / v.0.0.1

An all-in-one Discord bot written in Python 3.8.2
0 stars 1 forks source link

Add Cog Management Extension #8

Open Savant-Dev opened 4 years ago

Savant-Dev commented 4 years ago

The purpose of this cog is to manage all extensions. Re-configuring the extension and its' parent classes. Unloading, Loading, Reloading, Hot-loading commands should be included as well.

The easiest way to go about this, since the cog doesn't necessarily need configuration updates, would be to unload/load all extensions effectively recalling the configuration methods for both cog and parent class. This can be done a few times a day, along with a more frequent check that scans the database for changes. When changes are found, it reloads the extension whose configuration changed.