config initialization
This commit is contained in:
parent
fdd2aed0b8
commit
d9c2da55c1
|
|
@ -31,12 +31,12 @@ class DiscordBotPlugin(PHALPlugin):
|
|||
# Discord event: bot is ready
|
||||
@self.bot.event
|
||||
async def on_ready():
|
||||
myLoop.start()
|
||||
print(f'{bot.user} has connected to Discord!')
|
||||
#myLoop.start()
|
||||
LOG.info(f"{bot.user} has connected to Discord!")
|
||||
|
||||
admin = await get_discord_user_by_id(DISCORD_ADMIN_ID)
|
||||
if admin:
|
||||
print(f"Admin is {admin.name}")
|
||||
LOG.info(f"Admin is {admin.name}")
|
||||
await admin.send("I'm now online")
|
||||
|
||||
self.setup_configuration()
|
||||
|
|
|
|||
Loading…
Reference in New Issue