From e790392250b88494043466e840528392d8284848 Mon Sep 17 00:00:00 2001 From: lemoer Date: Sun, 29 Dec 2024 02:53:37 +0100 Subject: [PATCH] add putzen.sh --- putzen.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 putzen.sh diff --git a/putzen.sh b/putzen.sh new file mode 100644 index 0000000..d165ec1 --- /dev/null +++ b/putzen.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "Usage: $0 [1-4]" + exit 1 +fi + +case $1 in + 1) + /usr/bin/docker exec lab-signal-bot-lab-bot-1 \ + python create_task.py "LeineLab putzen" 2 "in 7 days" \ + --pad-template-url "https://pad.leinelab.org/leinelab-putzen-only-weekly" + ;; + 2) + /usr/bin/docker exec lab-signal-bot-lab-bot-1 \ + python create_task.py "LeineLab putzen" 4 "in 7 days" \ + --pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly" + ;; + 3) + /usr/bin/docker exec lab-signal-bot-lab-bot-1 \ + python create_task.py "LeineLab putzen" 4 "in 7 days" \ + --pad-template-url "https://pad.leinelab.org/leinelab-putzen-monthly" + ;; + 4) + /usr/bin/docker exec lab-signal-bot-lab-bot-1 \ + python create_task.py "LeineLab putzen" 4 "in 7 days" \ + --pad-template-url "https://pad.leinelab.org/leinelab-putzen-fortnightly" + ;; + *) + echo "Invalid choice" + ;; +esac