message passing code
This commit is contained in:
parent
abbfed80ba
commit
8d778c4afc
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue