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