message passing code

This commit is contained in:
Sebastian Mäki 2024-02-20 13:07:41 +00:00
parent abbfed80ba
commit 8d778c4afc
1 changed files with 2 additions and 2 deletions

View File

@ -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: