记录bark推送结果

This commit is contained in:
TingHsi 2022-05-09 14:33:59 +08:00
parent abc05437ab
commit 4194fbabf1

View File

@ -139,9 +139,10 @@ def dingrobot(status, push_message):
# Bark
def bark(status, push_message):
http.get(
rep = http.get(
url=f'{cfg.get("bark", "api_url")}/{cfg.get("bark", "token")}/{title(status)}/{push_message}'
)
).json()
log.info(f"推送结果:{rep.get('message')}")
def push(status, push_message):
if not load_config():