try to fix schizo cmd

This commit is contained in:
Milka64 2021-11-21 16:49:43 +01:00
parent 239bbe259e
commit 84dd36208f

View file

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