test n°6 command say
This commit is contained in:
parent
228723a1a4
commit
e84bde3fca
1 changed files with 2 additions and 1 deletions
|
@ -297,7 +297,8 @@ class Mybot(commands.Cog):
|
||||||
guild = self.bot.guilds[0]
|
guild = self.bot.guilds[0]
|
||||||
members = guild.members
|
members = guild.members
|
||||||
for member in members:
|
for member in members:
|
||||||
if member.name == word:
|
print(member.name)
|
||||||
|
if member.name == word[1:]:
|
||||||
sentence = sentence.replace(word, member.id)
|
sentence = sentence.replace(word, member.id)
|
||||||
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