test n°5 command say
This commit is contained in:
parent
f9c51f2009
commit
228723a1a4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue