drop when empty

This commit is contained in:
Guy Van Sanden 2025-02-18 15:23:06 +01:00
parent b6e11f148f
commit b95b776418
2 changed files with 5 additions and 2 deletions

View File

@ -52,7 +52,10 @@ def webhook_receiver(id):
if target is not None: if target is not None:
print(target) print(target)
sendmessage(target, data.get('message')) if data.get('message') is not None:
sendmessage(target, data.get('message'))
else:
print("No message, droppint")
else: else:
print("No target found, dropping message") print("No target found, dropping message")

View File

@ -5,7 +5,7 @@ After=network.target
[Service] [Service]
User=tellme User=tellme
WorkingDirectory=/opt/tellme WorkingDirectory=/opt/tellme
ExecStart=notifier.py ExecStart=python3 notifier.py
Restart=always Restart=always
[Install] [Install]