diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index c6cf60b..36732c2 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -297,7 +297,8 @@ class Mybot(commands.Cog): guild = self.bot.guilds[0] members = guild.members for member in members: - if member.name == word: + print(member.name) + if member.name == word[1:]: sentence = sentence.replace(word, member.id) channel = [x for x in self.bot.get_all_channels() if x.name == "général"][0] await channel.send(sentence)