1
0
Fork 0
mirror of synced 2024-05-06 21:52:30 +12:00

Implement on_ready to test if completion ever happens

This commit is contained in:
Dan Hess 2020-10-10 19:10:00 -05:00
parent 7ca221adb3
commit dae89ce4ee

10
bot.py
View file

@ -36,6 +36,16 @@ async def start_typing(ctx):
pass
@bot.event
async def on_ready():
completion = "Ready in: ```\n{}```".format(
(pendulum.now(tz="UTC") - bot.uptime).in_words()
)
await bot.get_guild(214143647447253003).get_channel(214146604519784449).send(
completion
)
@bot.event
async def on_command_completion(ctx):
author = ctx.author.id