From 93b4f0030876d81dda55079b8a0aac2a36ca114a Mon Sep 17 00:00:00 2001 From: Someone Date: Fri, 18 Mar 2022 21:32:47 +0100 Subject: [PATCH] modules/CommandCoronaPresenceLogger.py --- modules/CommandCoronaPresenceLogger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/CommandCoronaPresenceLogger.py b/modules/CommandCoronaPresenceLogger.py index 81dfd72..11af6b1 100644 --- a/modules/CommandCoronaPresenceLogger.py +++ b/modules/CommandCoronaPresenceLogger.py @@ -48,9 +48,9 @@ class CommandCoronaPresenceLogger(AbstractCommand): request.respond_cmd_chan("``AUTODELETE-DAY`` **``CPL, OIDA!``**", props={"cpl-meme-upload-todo":"todo"}) elif re.match(r"^(-|—|–)+", data['text']): - filename = self.datadir + datetime.date.today().isoformat()+"--"+data["user_id"] + filename = self.datadir + datetime.date.today().isoformat()+"__"+data["user_id"] with open(filename, "a") as file: - file.write(data["user_name"]+" -- "+datetime.datetime.now().isoformat()+"\n") + file.write(data["user_id"]+" -- "+data["user_name"]+" -- "+datetime.datetime.now().isoformat()+"\n") request.respond_cmd_temp(cleandoc(""" ## :white_check_mark: Success! :) #### ``Your presence at FSINF today has been logged.`` -- 2.43.0