config initialization
This commit is contained in:
@@ -39,7 +39,7 @@ class DiscordBotPlugin(PHALPlugin):
|
|||||||
#myLoop.start()
|
#myLoop.start()
|
||||||
LOG.info(f"{self.bot.user} has connected to Discord!")
|
LOG.info(f"{self.bot.user} has connected to Discord!")
|
||||||
|
|
||||||
admin = await get_discord_user_by_id(DISCORD_ADMIN_ID)
|
admin = await get_discord_user_by_id(self.config.get("admin_id"))
|
||||||
if admin:
|
if admin:
|
||||||
LOG.info(f"Admin is {admin.name}")
|
LOG.info(f"Admin is {admin.name}")
|
||||||
await admin.send("I'm now online")
|
await admin.send("I'm now online")
|
||||||
|
|||||||
Reference in New Issue
Block a user