Signal als Messenger hinzugefügt
This commit is contained in:
parent
71966bcef0
commit
97aad84665
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.csv
|
||||
__pycache__
|
||||
|
@ -15,6 +15,10 @@ kommune: 2601
|
||||
strasse: 2146
|
||||
pathBot: '~/bin/YMBot'
|
||||
tgBotOwner: <hier DEINE Telegram-ID eintragen>
|
||||
signal:
|
||||
path: "~/bin/signal-cli"
|
||||
account: "+49<deine Mobilfunknummer>"
|
||||
group_id: "<siehe 'signal-cli listGroups'>"
|
||||
'''
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user