From c2a9e3302b000065a3940f55941b9a7cd099dcec Mon Sep 17 00:00:00 2001 From: BFlow Date: Sat, 25 Apr 2020 20:15:46 +0200 Subject: [PATCH] =?UTF-8?q?test=20n=C2=B01=20command=20say?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kabot/kabot/kabot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 87d9e50..b72b85a 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -294,7 +294,8 @@ class Mybot(commands.Cog): sentence = ' '.join(message) for word in sentence.split(): if word.startswith('@'): - members = ctx.guild.members + guild = self.guilds[0] + members = guild.members for member in members: if member.name == word: sentence.replace(word, member)