From 51743bc786d4c7a0bb6f36c67d2016cefe0b886c Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 19 Nov 2019 17:22:17 +0100 Subject: [PATCH] =?UTF-8?q?t'aime=20=C3=A7a=20les=20patch!=20(commande=20s?= =?UTF-8?q?lap)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 4e0b755..1f35847 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -98,7 +98,7 @@ class Mybot(commands.Cog): online_members.append(member) user = random.choice(online_members) user = user.mention - elif ctx.user.mentions: + elif ctx.message.mentions: user = ctx.message.mentions[0] user = user.mention if user == self.bot.user.mention: