test n°7 command say

This commit is contained in:
BFlow 2020-04-25 20:28:05 +02:00
parent e84bde3fca
commit cb4ed715b3

View file

@ -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)