From 89d2f009112cc2f6c2e5dd2e04e8cc43f3e01f73 Mon Sep 17 00:00:00 2001 From: iDutchy Date: Tue, 5 Jan 2021 19:46:05 -0600 Subject: [PATCH] so eh, lets comment this out for now since using it crashes the machine... --- discord/ext/commands/bot.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index c8ab99e2..953ddbbf 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -843,16 +843,16 @@ class BotBase(GroupMixin): if not ret: raise ValueError("Iterable command_prefix must contain at least one prefix") - if self.case_insensitive_prefix: - if isinstance(ret, list): - temp = [] - for pre in ret: - if pre in (self.user.mention + ' ', '<@!%s> ' % self.user.id): - continue - temp += list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in pre)))) - ret = temp - else: - ret = list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in ret)))) + # if self.case_insensitive_prefix: + # if isinstance(ret, list): + # temp = [] + # for pre in ret: + # if pre in (self.user.mention + ' ', '<@!%s> ' % self.user.id): + # continue + # temp += list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in pre)))) + # ret = temp + # else: + # ret = list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in ret)))) return ret async def get_context(self, message, *, cls=Context):