From cb007a712676c6a9dba00f19b379248e1cf2aef8 Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 4 May 2021 22:34:32 +0200 Subject: [PATCH] command schizo --- kabot/kabot/kabot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index c5a15b0..88327d9 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -420,6 +420,11 @@ class Mybot(commands.Cog): @commands.command(help='Who the fuck am i?') async def schizo(self, ctx, name=None): list_name = ["Kabot", "Gaspard et Balthazar", "Bender", "Zoidberg", "Gunther"] + try: + current_name = self.bot.user.name + list_name.remove(current_name) + except: + pass if not name: name = random.choice(list_name) if name in list_name: