# 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 ""