config initialization
This commit is contained in:
parent
7e15a5d4a8
commit
fe3ac8ff6a
|
|
@ -28,6 +28,11 @@ class DiscordBotPlugin(PHALPlugin):
|
|||
self.bus.on("configuration.updated", self.init_configuration)
|
||||
reinstall_hint = "pip install --upgrade --no-deps --force-reinstall git+https://git.sebastianmaki.fi/sebastian/ovos-PHAL-plugin-discord-bot.git"
|
||||
LOG.info(f"Reinstall hint: {reinstall_hint}")
|
||||
|
||||
# Helper function to get Discord user by ID
|
||||
async def get_discord_user_by_id(user_id) -> discord.User:
|
||||
return await self.bot.fetch_user(user_id)
|
||||
|
||||
# Discord event: bot is ready
|
||||
@self.bot.event
|
||||
async def on_ready():
|
||||
|
|
@ -108,6 +113,4 @@ class DiscordBotPlugin(PHALPlugin):
|
|||
|
||||
|
||||
|
||||
# Helper function to get Discord user by ID
|
||||
async def get_discord_user_by_id(user_id) -> discord.User:
|
||||
return await self.bot.fetch_user(user_id)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue