try to fix schizo cmd
This commit is contained in:
parent
239bbe259e
commit
84dd36208f
1 changed files with 2 additions and 1 deletions
|
@ -432,7 +432,8 @@ class Mybot(commands.Cog):
|
||||||
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 name.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)
|
name = correct_name
|
||||||
|
await self.bot.user.edit(username=name)
|
||||||
else:
|
else:
|
||||||
name = "404"
|
name = "404"
|
||||||
await self.bot.user.edit(username="Error 404 name not found!")
|
await self.bot.user.edit(username="Error 404 name not found!")
|
||||||
|
|
Loading…
Reference in a new issue