message passing code
This commit is contained in:
parent
abbfed80ba
commit
8d778c4afc
|
|
@ -51,10 +51,10 @@ class DiscordBotPlugin(PHALPlugin):
|
||||||
# Discord event: Process incoming messages
|
# Discord event: Process incoming messages
|
||||||
@self.bot.event
|
@self.bot.event
|
||||||
async def on_message(message):
|
async def on_message(message):
|
||||||
if message.author == bot.user:
|
if message.author == self.bot.user:
|
||||||
return
|
return
|
||||||
|
|
||||||
await bot.process_commands(message)
|
await self.bot.process_commands(message)
|
||||||
admin = await get_discord_user_by_id(self.config.get("admin_id"))
|
admin = await get_discord_user_by_id(self.config.get("admin_id"))
|
||||||
|
|
||||||
if message.author == admin:
|
if message.author == admin:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue