iuriguilherme / iacecil

O repositório mais fofo do Github
GNU General Public License v3.0
3 stars 1 forks source link

Load plugins from config file #4

Open iuriguilherme opened 2 years ago

iuriguilherme commented 2 years ago

Plugin loading currently is harcoded in aiogram init;

When it should be done using configuration directives already implemented in the config file, attributed to the bot object, but currently unused. print(current_app.dispatchers[0].bot.plugins['epsilon']) should print a list of first bot's plugins that should be loaded for general use, if properly configured.