test n°1 command say
This commit is contained in:
parent
08bfb3c744
commit
c2a9e3302b
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,8 @@ class Mybot(commands.Cog):
|
||||||
sentence = ' '.join(message)
|
sentence = ' '.join(message)
|
||||||
for word in sentence.split():
|
for word in sentence.split():
|
||||||
if word.startswith('@'):
|
if word.startswith('@'):
|
||||||
members = ctx.guild.members
|
guild = self.guilds[0]
|
||||||
|
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)
|
||||||
|
|
Loading…
Reference in a new issue