config initialization

This commit is contained in:
Sebastian Mäki 2024-02-20 12:57:00 +02:00
parent fe3ac8ff6a
commit d1691f7a73
1 changed files with 1 additions and 1 deletions

View File

@ -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")