From dae89ce4ee57d7d00f3f8d9146a9dada1eddcc84 Mon Sep 17 00:00:00 2001 From: Dan Hess Date: Sat, 10 Oct 2020 19:10:00 -0500 Subject: [PATCH] Implement on_ready to test if completion ever happens --- bot.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bot.py b/bot.py index 02a7dd6..b609e54 100644 --- a/bot.py +++ b/bot.py @@ -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