try to fix schizo cmd

This commit is contained in:
Milka64 2021-11-21 16:48:04 +01:00
parent 34b1c075b6
commit 239bbe259e

View file

@ -431,7 +431,7 @@ class Mybot(commands.Cog):
lower_names = [x.lower() for x in list_name] lower_names = [x.lower() for x in list_name]
if name.lower() in lower_names: if name.lower() in lower_names:
if name: if name:
correct_name = [x for x in list_name if x.lower() in nama.lower()][0] correct_name = [x for x in list_name if x.lower() in name.lower()][0]
await self.bot.user.edit(username=correct_name) await self.bot.user.edit(username=correct_name)
else: else:
name = "404" name = "404"