Send push notifications to your Gotify server when long-running tasks complete or important events occur.
This skill enables Clawdbot to send push notifications via Gotify, useful for:
Create the credentials file: ~/.clawdbot/credentials/gotify/config.json
{
"url": "https://gotify.example.com",
"token": "YOUR_APP_TOKEN"
}
url: Your Gotify server URL (no trailing slash)token: Application token from Gotify (Settings → Apps → Create Application)bash scripts/send.sh "Task completed successfully"
bash scripts/send.sh --title "Build Complete" --message "skill-sync tests passed"
bash scripts/send.sh -t "Critical Alert" -m "Service down" -p 10
bash scripts/send.sh --title "Deploy Summary" --markdown --message "
## Deployment Complete
- **Status**: ✅ Success
- **Duration**: 2m 34s
- **Commits**: 5 new
"
# Run long task
./deploy.sh && bash ~/clawd/skills/gotify/scripts/send.sh "Deploy finished"
When Clawdbot supports task completion hooks, this skill can be triggered automatically:
# Example hook configuration (conceptual)
{
"on": "task_complete",
"run": "bash ~/clawd/skills/gotify/scripts/send.sh 'Task: {{task_name}} completed in {{duration}}'"
}
-m, --message : Notification message (required)-t, --title : Notification title (optional)-p, --priority <0-10>: Priority level (default: 5)--markdown: Enable markdown formatting in message# After spawning subagent
sessions_spawn --task "Research topic" --label my-research
# ... wait for completion ...
bash scripts/send.sh -t "Research Complete" -m "Check session: my-research"
if ! ./critical-task.sh; then
bash scripts/send.sh -t "⚠️ Critical Failure" -m "Task failed, check logs" -p 10
fi
bash scripts/send.sh --markdown -t "Daily Summary" -m "
# System Status
## ✅ Healthy
- UniFi: 34 clients
- Sonarr: 1,175 shows
- Radarr: 2,551 movies
## 📊 Stats
- Uptime: 621h
- Network: All OK
"
When the user says:
&& bash scripts/send.sh "Task complete" to their commandbash scripts/send.sh with their messageAlways confirm the notification was sent successfully (check for JSON response with message ID).
共 1 个版本