mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 17:30:43 +08:00
This commit is contained in:
parent
138bfde587
commit
7229388cdd
@ -33,7 +33,7 @@ def print(text, *args, **kw):
|
|||||||
# 通知服务
|
# 通知服务
|
||||||
# fmt: off
|
# fmt: off
|
||||||
push_config = {
|
push_config = {
|
||||||
'HITOKOTO': True, # 启用一言(随机句子)
|
'HITOKOTO': False, # 启用一言(随机句子)
|
||||||
|
|
||||||
'BARK_PUSH': '', # bark IP 或设备码,例:https://api.day.app/DxHcxxxxxRxxxxxxcm/
|
'BARK_PUSH': '', # bark IP 或设备码,例:https://api.day.app/DxHcxxxxxRxxxxxxcm/
|
||||||
'BARK_ARCHIVE': '', # bark 推送是否存档
|
'BARK_ARCHIVE': '', # bark 推送是否存档
|
||||||
@ -1020,8 +1020,9 @@ def send(title: str, content: str, ignore_default_config: bool = False, **kwargs
|
|||||||
print(f"{title} 在SKIP_PUSH_TITLE环境变量内,跳过推送!")
|
print(f"{title} 在SKIP_PUSH_TITLE环境变量内,跳过推送!")
|
||||||
return
|
return
|
||||||
|
|
||||||
hitokoto = push_config.get("HITOKOTO", "false")
|
hitokoto = push_config.get("HITOKOTO")
|
||||||
content += "\n\n" + one() if hitokoto != "false" else ""
|
if hitokoto and str(hitokoto).lower() != "false":
|
||||||
|
content += "\n\n" + one()
|
||||||
|
|
||||||
notify_function = add_notify_function()
|
notify_function = add_notify_function()
|
||||||
ts = [
|
ts = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user