From cd0acfccf37e86b62883f9e3c9dbdc9f86358ce1 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 16 Apr 2024 20:23:15 +0200 Subject: [PATCH] notify me when some1 starts an orgy --- files/routes/chats.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/files/routes/chats.py b/files/routes/chats.py index 65b163948..e015b134d 100644 --- a/files/routes/chats.py +++ b/files/routes/chats.py @@ -262,10 +262,14 @@ def schedule_orgy(v, chat_id): ma = ModAction( kind="schedule_orgy", user_id=v.id, - _note=f'{title}', + _note=f'{title}', ) g.db.add(ma) + if AEVANN_ID and v.id != AEVANN_ID: + text = f"@{v.username} has started [{title}]({normalized_link}) in [{chat.name}](/chat/{chat.id})" + send_repeatable_notification(AEVANN_ID, text) + return redirect(f"/chat/{chat_id}/orgies") @app.post("/chat//remove_orgy/")