From 84dd36208fb64429900fce41ff296846f451ac37 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Sun, 21 Nov 2021 16:49:43 +0100 Subject: [PATCH] try to fix schizo cmd --- kabot/kabot/kabot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index e25e972..3346a8e 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -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!")