diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index c4b37c1..87d9e50 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -292,6 +292,12 @@ class Mybot(commands.Cog): @commands.command(help="Faire dire des choses au bot") async def say(self, ctx, *message): sentence = ' '.join(message) + for word in sentence.split(): + if word.startswith('@'): + members = ctx.guild.members + for member in members: + if member.name == word: + sentence.replace(word, member) channel = [x for x in self.bot.get_all_channels() if x.name == "général"][0] await channel.send(sentence)