test n°5 command say

This commit is contained in:
BFlow 2020-04-25 20:23:44 +02:00
parent f9c51f2009
commit 228723a1a4

View file

@ -298,7 +298,7 @@ class Mybot(commands.Cog):
members = guild.members
for member in members:
if member.name == word:
sentence = sentence.replace(word, member.mention)
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)