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