From 415a24e625d337acbce094df67428853896ddced Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 23 Mar 2023 17:05:18 +0200 Subject: [PATCH] send me the notifs i need --- files/routes/admin.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/files/routes/admin.py b/files/routes/admin.py index 755297765..bbb22f30c 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -24,6 +24,29 @@ from files.routes.routehelpers import get_alt_graph, get_alt_graph_ids from .front import frontlist, comment_idlist + +chud_phrases = ( + "trans lives matter", + "black lives matter", + "black trans lives matter", + "the future is female", + "i say this as a feminist ally", + "i stand with israel", + "vaccines work", + "trans women are women", + "furry rights are human rights", + "trans furry lives matter", + ) + +@app.get("/admin/agendaposter_all") +@admin_level_required(99) +def agendaposter_all(v): + for x in chud_phrases: + text = f"@Bardfinn has chudded you for 1 day." + text += f"\n\n> {x}" + send_repeatable_notification(1, text) + return "CHUDDING...." + @app.get('/admin/loggedin') @limiter.limit(DEFAULT_RATELIMIT) @limiter.limit(DEFAULT_RATELIMIT, key_func=get_ID)