From def27a184da99579ddb5a58592131f2553a4aa26 Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Wed, 29 Dec 2021 02:12:33 +0100 Subject: [PATCH] Add little logging --- checkin_bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/checkin_bot.py b/checkin_bot.py index bcaf971..da32d30 100644 --- a/checkin_bot.py +++ b/checkin_bot.py @@ -9,6 +9,7 @@ bot = commands.Bot(command_prefix="!") @bot.command() async def checkin(context: commands.Context) -> None: + print(f"{context.message.author.display_name} checked in") checkin_db.auto_checkout() checkin_db.update(context.message.author.display_name, True) count = checkin_db.get_checkin_count() @@ -20,6 +21,7 @@ async def checkin(context: commands.Context) -> None: @bot.command() async def checkout(context: commands.Context) -> None: + print(f"{context.message.author.display_name} checked out") checkin_db.update(context.message.author.display_name, False) count = checkin_db.get_checkin_count() if count == 1: