Add always-on ntfy completion notify rule for codex topic.
This commit is contained in:
17
scripts/ntfy.ps1
Normal file
17
scripts/ntfy.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
# Quick ntfy helper for this repo
|
||||
# Usage:
|
||||
# .\scripts\ntfy.ps1 "标题" "正文"
|
||||
# .\scripts\ntfy.ps1 -Title "ok" -Message "done" -Tags "white_check_mark"
|
||||
|
||||
param(
|
||||
[Parameter(Position = 0)]
|
||||
[string]$Title = "serverinfotest",
|
||||
[Parameter(Position = 1)]
|
||||
[string]$Message = "done",
|
||||
[string]$Tags = "white_check_mark",
|
||||
[string]$TopicUrl = "https://ntfy.dsx2020.com/codex"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
curl.exe -sS -H "Title: $Title" -H "Tags: $Tags" -d $Message $TopicUrl
|
||||
Write-Host ""
|
||||
Reference in New Issue
Block a user