From e6f8332a4b95a5a6012c9bb80317d72c99a45073 Mon Sep 17 00:00:00 2001 From: EEKIM10 Date: Sun, 9 Oct 2022 19:36:21 +0100 Subject: [PATCH] add status messages in console --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.py b/main.py index c2ea873..ec989ae 100644 --- a/main.py +++ b/main.py @@ -18,6 +18,11 @@ bot.load_extension("cogs.assignments") bot.loop.run_until_complete(registry.create_all()) +@bot.event +async def on_connect(): + print("Connected to discord!") + + @bot.event async def on_ready(): print("Logged in as", bot.user) @@ -31,4 +36,5 @@ async def ping(ctx: discord.ApplicationContext): if __name__ == "__main__": + print("Starting...") bot.run(config.token)