From 8311e6f40ee2e5a848f8cfdecbaa633ab1b0835f Mon Sep 17 00:00:00 2001 From: Lili Date: Mon, 26 Sep 2022 11:11:31 +0200 Subject: [PATCH] remove insecure clear command from bot CLI command replaces it safely --- tlapbot/owncast_webhooks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tlapbot/owncast_webhooks.py b/tlapbot/owncast_webhooks.py index 28da72d..31fc23a 100644 --- a/tlapbot/owncast_webhooks.py +++ b/tlapbot/owncast_webhooks.py @@ -50,6 +50,4 @@ def owncast_webhook(): # Forces name update in case bot didn't catch the NAME_CHANGE # event. Theoretically only needed when bot was off. change_display_name(db, user_id, display_name) - elif "!clear" in data["eventData"]["body"]: - clear_redeem_queue(db) return data \ No newline at end of file