From 7306ab84ab560103611e79e012aa3f76a2346bb6 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 24 Jun 2021 13:17:20 +0200 Subject: [PATCH] message lors de la deconnexion --- src/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.py b/src/main.py index 1ef1d68..9eb647f 100644 --- a/src/main.py +++ b/src/main.py @@ -19,6 +19,10 @@ print("Terminé !") async def on_connect(): print(f"Connecté !") +@client.event +async def on_disconnect(): + print(f"Déconnecté.") + @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))