From 79d81411663535f5e7c970685c7338f618cdef9e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 24 Jun 2021 22:48:10 +0200 Subject: [PATCH] adding message when bot reconnect --- src/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.py b/src/main.py index 9eb647f..52f00c7 100644 --- a/src/main.py +++ b/src/main.py @@ -23,6 +23,10 @@ async def on_connect(): async def on_disconnect(): print(f"Déconnecté.") +@client.event +async def on_resumed(): + print(f"Reconnecté !") + @client.event async def on_ready(): await client.change_presence(status = discord.Status.online, activity = discord.Activity(name = f"{customPrefix}help", type = discord.ActivityType.playing))