diff --git a/ovos_PHAL_plugin_discord_bot/__init__.py b/ovos_PHAL_plugin_discord_bot/__init__.py index 4e74715..7d004ed 100644 --- a/ovos_PHAL_plugin_discord_bot/__init__.py +++ b/ovos_PHAL_plugin_discord_bot/__init__.py @@ -51,10 +51,10 @@ class DiscordBotPlugin(PHALPlugin): # Discord event: Process incoming messages @self.bot.event async def on_message(message): - if message.author == bot.user: + if message.author == self.bot.user: return - await bot.process_commands(message) + await self.bot.process_commands(message) admin = await get_discord_user_by_id(self.config.get("admin_id")) if message.author == admin: