[V3 Core] Add optional async setup function (#1314)

This commit is contained in:
Will
2018-02-18 21:12:58 -05:00
committed by GitHub
parent 86b5932c8f
commit b871241eac
3 changed files with 9 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ def init_events(bot, cli_flags):
for package in packages:
try:
spec = await bot.cog_mgr.find_cog(package)
bot.load_extension(spec)
await bot.load_extension(spec)
except Exception as e:
log.exception("Failed to load package {}".format(package),
exc_info=e)