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: