Accept multiple answers in !cog install

This commit is contained in:
Twentysix 2016-03-25 19:00:01 +01:00
parent e9c7e32176
commit 15fc9db1c6

View File

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