mirror of
https://github.com/TDSCDMAA/AutoMihoyoBBS.git
synced 2026-06-05 11:58:48 +08:00
记录bark推送结果
This commit is contained in:
parent
abc05437ab
commit
4194fbabf1
5
push.py
5
push.py
@ -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():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user