config initialization
This commit is contained in:
parent
fe3ac8ff6a
commit
d1691f7a73
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue