From 15fc9db1c6be6e3b39d308ab2d98d318c59775be Mon Sep 17 00:00:00 2001 From: Twentysix Date: Fri, 25 Mar 2016 19:00:01 +0100 Subject: [PATCH] Accept multiple answers in !cog install --- cogs/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/downloader.py b/cogs/downloader.py index 1d6eb2254..5d9c39ef8 100644 --- a/cogs/downloader.py +++ b/cogs/downloader.py @@ -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)