From 97aad8466561489a50e898d9203d8383dfcad6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hauke=20Z=C3=BChl?= Date: Sat, 9 Nov 2024 09:08:14 +0100 Subject: [PATCH] =?UTF-8?q?Signal=20als=20Messenger=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + python/muell.py | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index afed073..97eae9a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.csv +__pycache__ diff --git a/python/muell.py b/python/muell.py index b670917..98c8ad8 100644 --- a/python/muell.py +++ b/python/muell.py @@ -15,6 +15,10 @@ kommune: 2601 strasse: 2146 pathBot: '~/bin/YMBot' tgBotOwner: +signal: + path: "~/bin/signal-cli" + account: "+49" + group_id: "" ''' import csv @@ -169,3 +173,9 @@ if __name__ == '__main__': tonnen = ' und '.join(tonnen) # Jetzt den Bot ansprechen os.system(f'echo "Morgen {wird} {tonnen} abgeholt" | {config["pathBot"]} -u {config["tgReceiver"]}') + + # Signal Bot + try: + os.system(f'{config["signal"]["path"]} -a {config["signal"]["account"]} send -g {config["signal"]["group_id"]} -m "Morgen {wird} {tonnen} abgeholt"') + except NameError: + pass