From 1d14fd014b212c070b3a13e1c2caadde46da5b04 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 14 Apr 2023 13:28:48 +0200 Subject: [PATCH] WIP: Event [logging] --- modules/event.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/event.py b/modules/event.py index f26e686..3ed0b70 100644 --- a/modules/event.py +++ b/modules/event.py @@ -13,6 +13,7 @@ from pyrogram.types import Message, User from pyrogram.enums import ParseMode from app import app +from modules.logging import logWrite from modules.utils import configGet collections = db.list_collection_names() @@ -31,6 +32,9 @@ async def stage_passer( return False if col_event.find_one({"user": user.id, "stage": current}) is None: + logWrite( + f"User {user.first_name} ({user.id}) has completed event stage {current}" + ) col_event.insert_one( {"user": user.id, "stage": current, "date": datetime.now()} )