Closed Pythonic-Rainbow closed 3 years ago
async def load_cogs(): bot.add_cog(ricciardo.Ricciardo(bot)) bot.add_cog(hamilton.Hamilton(bot)) bot.add_cog(verstapen.Verstapen(bot)) bot.add_cog(bot.echo) bot.add_cog(norris.Norris(bot)) bot.loop.create_task(load_cogs()) bot.run()
This allows each cog to remove on_ready() because fetching channels can be directly coded in __init__
on_ready()
__init__
https://github.com/TCLRainbow/DimBot/commit/58dddcd498fa05556c363716c244a80248773d8d
This allows each cog to remove
on_ready()
because fetching channels can be directly coded in__init__