test n°3 command say
This commit is contained in:
parent
4307084384
commit
5793432802
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ class Mybot(commands.Cog):
|
||||||
members = guild.members
|
members = guild.members
|
||||||
for member in members:
|
for member in members:
|
||||||
if member.name == word:
|
if member.name == word:
|
||||||
sentence.replace(word, member)
|
sentence.replace(word, member.mention)
|
||||||
channel = [x for x in self.bot.get_all_channels() if x.name == "général"][0]
|
channel = [x for x in self.bot.get_all_channels() if x.name == "général"][0]
|
||||||
await channel.send(sentence)
|
await channel.send(sentence)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue