[Downloader] Do the initialization in task to avoid timeout on bot startup (#3440)

* enhance(downloader): run init in task

* chore(changelog): add towncrier entry

* fix: address review
This commit is contained in:
jack1142
2020-01-24 18:38:42 +01:00
committed by Michael H
parent 01c1fdfd16
commit 2a38777379
3 changed files with 16 additions and 1 deletions

View File

@@ -3,5 +3,5 @@ from .downloader import Downloader
async def setup(bot):
cog = Downloader(bot)
await cog.initialize()
bot.add_cog(cog)
cog.create_init_task()