test n°4 command say
This commit is contained in:
parent
5793432802
commit
f9c51f2009
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.mention)
|
sentence = 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