From cb4ed715b3d0922297442b0e19c81600d7893584 Mon Sep 17 00:00:00 2001 From: BFlow Date: Sat, 25 Apr 2020 20:28:05 +0200 Subject: [PATCH] =?UTF-8?q?test=20n=C2=B07=20command=20say?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kabot/kabot/kabot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 36732c2..b38f62d 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -297,9 +297,8 @@ class Mybot(commands.Cog): guild = self.bot.guilds[0] members = guild.members for member in members: - print(member.name) if member.name == word[1:]: - sentence = sentence.replace(word, member.id) + sentence = sentence.replace(word, member.mention) channel = [x for x in self.bot.get_all_channels() if x.name == "général"][0] await channel.send(sentence)