|
|
|
@ -174,11 +174,11 @@ if __name__ == '__main__': |
|
|
|
|
# Jetzt den Telegram Bot ansprechen |
|
|
|
|
try: |
|
|
|
|
os.system(f'echo "Morgen {wird} {tonnen} abgeholt" | {config["telegram"]["pathBot"]} -u {config["telegram"]["tgReceiver"]}') |
|
|
|
|
except NameError: |
|
|
|
|
pass |
|
|
|
|
except Exception as e: |
|
|
|
|
os.system(f'logger "Fehler Muellbot Telegram: {e}"') |
|
|
|
|
|
|
|
|
|
# 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 |
|
|
|
|
except Exception as e: |
|
|
|
|
os.system(f'logger "Fehler Muellbot Signal: {e}"') |
|
|
|
|