commit
8028304c7d
@ -35,6 +35,8 @@ secret=
|
||||
[bark]
|
||||
api_url=https://api.day.app
|
||||
token=ssXXX
|
||||
#bark通知图标,可选genshin,mihoyobbs,hokai2,honkai3rd,tears_of_themis
|
||||
icon=genshin
|
||||
|
||||
[gotify]
|
||||
api_url=http://xxx.xxx.cn
|
||||
|
2
push.py
2
push.py
@ -174,7 +174,7 @@ def dingrobot(send_title, push_message):
|
||||
# Bark
|
||||
def bark(send_title, push_message):
|
||||
rep = http.get(
|
||||
url=f'{cfg.get("bark", "api_url")}/{cfg.get("bark", "token")}/{send_title}/{push_message}'
|
||||
url=f'{cfg.get("bark", "api_url")}/{cfg.get("bark", "token")}/{send_title}/{push_message}?icon=https://cdn.jsdelivr.net/gh/tanmx/pic@main/mihoyo/{cfg.get("bark", "icon")}.png'
|
||||
).json()
|
||||
log.info(f"推送结果:{rep.get('message')}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user