Fix for lazy people

This commit is contained in:
Twentysix 2016-03-22 15:10:38 +01:00
parent e1d1ebe8e2
commit ba81bc78c9

View File

@ -70,7 +70,7 @@ class Downloader:
answer = await self.bot.wait_for_message(timeout=15, author=ctx.message.author) answer = await self.bot.wait_for_message(timeout=15, author=ctx.message.author)
if answer is None: if answer is None:
await self.bot.say("Ok then, you can reload cogs with `{}reload <cog_name>`".format(ctx.prefix)) await self.bot.say("Ok then, you can reload cogs with `{}reload <cog_name>`".format(ctx.prefix))
elif answer.content.lower().strip() == "yes": elif answer.content.lower().strip() in ["yes", "y"]:
for cog in installed_user_cogs: for cog in installed_user_cogs:
self.bot.unload_extension("cogs." + cog) self.bot.unload_extension("cogs." + cog)
self.bot.load_extension("cogs." + cog) self.bot.load_extension("cogs." + cog)