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