so eh, lets comment this out for now since using it crashes the machine...

This commit is contained in:
iDutchy 2021-01-05 19:46:05 -06:00
parent a0d491c71f
commit 89d2f00911

View File

@ -843,16 +843,16 @@ class BotBase(GroupMixin):
if not ret: if not ret:
raise ValueError("Iterable command_prefix must contain at least one prefix") raise ValueError("Iterable command_prefix must contain at least one prefix")
if self.case_insensitive_prefix: # if self.case_insensitive_prefix:
if isinstance(ret, list): # if isinstance(ret, list):
temp = [] # temp = []
for pre in ret: # for pre in ret:
if pre in (self.user.mention + ' ', '<@!%s> ' % self.user.id): # if pre in (self.user.mention + ' ', '<@!%s> ' % self.user.id):
continue # continue
temp += list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in pre)))) # temp += list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in pre))))
ret = temp # ret = temp
else: # else:
ret = list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in ret)))) # ret = list(map(''.join, itertools.product(*((c.upper(), c.lower()) for c in ret))))
return ret return ret
async def get_context(self, message, *, cls=Context): async def get_context(self, message, *, cls=Context):