modified: scripts/menu.sh

modified:   scripts/start.sh
This commit is contained in:
CK
2024-12-14 15:24:08 +08:00
parent 6e278d6aba
commit 6752593928
3 changed files with 48 additions and 6 deletions

View File

@@ -128,6 +128,9 @@ logger() { #日志工具
content="{\"token\":\"${push_PP}\",\"title\":\"ShellCrash日志推送\",\"content\":\"$log_text\"}"
webpush "$url" "$content" &
}
[ -n "$push_SynoChat" ] && {
curl -X POST "${push_ChatURL}/webapi/entry.cgi?api=SYNO.Chat.External&method=chatbot&version=2&token=${push_ChatTOKEN}" -H 'content-Type: application/json' -d "payload={\"text\":\"${log_text}\", \"user_ids\":[${push_ChatUSERID}]}" >/dev/null 2>&1
}
} &
}
croncmd() { #定时任务工具