barkpush智能 Bark 推送助手,支持多用户管理、智能内容识别、历史记录追踪和消息更新功能
Install via ClawdBot CLI:
clawdbot install liberalchang/barkpush🔔 智能 Bark 推送助手,为您提供便捷、灵活的消息推送服务。
自动识别您发送的内容类型,以最优方式推送:
image 参数)url 参数)body 参数)--user alice--user alice,bob,charlie--user all通过 JSON 配置文件管理默认推送参数:
用户指定的参数优先于默认配置。
根据操作结果返回清晰的信息:
首次使用前,创建配置文件 config.json:
```json
{
"default_push_url": "https://api.day.app",
"ciphertext": "",
"users": {
"alice": "your_device_key_1",
"bob": "your_device_key_2"
},
"defaults": {
"level": "active",
"volume": 10,
"badge": 1,
"sound": "bell",
"icon": "",
"group": "default",
"call": false,
"autoCopy": false,
"copy": "",
"isArchive": true,
"action": ""
},
"groups": ["work", "personal", "urgent"],
"history_limit": 100,
"enable_update": true
}
```
```bash
bark-push --user alice --content "Hello, World!"
bark-push --user alice --title "重要通知" --content "会议将在10分钟后开始"
bark-push --user bob --content "https://example.com/photo.jpg"
bark-push --user alice,bob --title "团队通知" --content "项目已上线"
bark-push --user all --title "系统公告" --content "服务器维护通知"
bark-push --user alice --content "紧急事件" --level critical
bark-push --user alice --content "工作提醒" --group work
bark-push --update abc123 --user alice --content "会议时间改为15分钟后"
bark-push --delete abc123 --user alice
bark-push --list-history --history-limit 20
bark-push --list-users
bark-push --help-skill
```
| 参数 | 说明 | 示例 |
|------|------|------|
| --config | 配置文件路径 | --config ./config.json |
| --user, -u | 指定推送用户(别名或 device_key) | --user alice |
| --title, -t | 消息标题 | --title "重要通知" |
| --subtitle | 消息副标题 | --subtitle "10分钟后" |
| --content, -c | 消息内容 | --content "消息内容" |
| --group | 指定分组 | --group work |
| --help-skill | 显示帮助信息 | --help-skill |
| 参数 | 说明 | 取值范围 |
|------|------|----------|
| --level | 消息级别 | passive, active, time-sensitive, critical |
| --volume | 音量 | 0-10 |
| --badge | 角标数字 | 整数 |
| --sound | 通知声音 | bell, chime, glass 等 |
| --icon | 图标 URL | 完整的 HTTPS URL |
| --call | 是否呼叫 | 1/0/true/false |
| --autoCopy | 自动复制 | 1/0/true/false |
| --copy | 复制内容 | 字符串 |
| --isArchive | 自动归档 | 1/0/true/false |
| --action | 自定义动作 | JSON 字符串 |
| --ciphertext | 加密密文 | 字符串 |
| 参数 | 说明 | 示例 |
|------|------|------|
| --update | 更新已推送的消息 | --update abc123 |
| --delete | 删除已推送的消息 | --delete abc123 |
| --list-users | 列出所有用户 | --list-users |
| --list-groups | 列出所有分组 | --list-groups |
| --list-history | 列出历史记录 | --list-history --history-limit 20 |
| --history-limit | 历史列表条数 | --history-limit 20 |
在 config.json 的 users 字段中配置用户别名:
```json
{
"users": {
"alice": "device_key_alice_123",
"bob": "device_key_bob_456",
"charlie": "device_key_charlie_789"
}
}
```
在 config.json 的 defaults 字段中配置默认推送参数:
```json
{
"defaults": {
"level": "active",
"volume": 10,
"badge": 1,
"sound": "bell",
"group": "default"
}
}
```
在 config.json 的 groups 字段中定义可用分组:
```json
{
"groups": ["work", "personal", "urgent", "family"]
}
```
在 config.json 的 history_limit 字段中设置历史记录保存数量:
```json
{
"history_limit": 100
}
```
```json
{
"ciphertext": "your_encryption_key"
}
```
```bash
bark-push --user alice --content "别忘了下午3点的会议"
```
```bash
bark-push --user all --title "服务器告警" --content "CPU使用率超过90%" --level critical --sound alarm
```
```bash
bark-push --user alice,bob,charlie --title "项目进度" --content "前端开发已完成,请开始测试" --group work
```
```bash
bark-push --user bob --content "https://example.com/screenshot.png"
```
```bash
bark-push --user alice --content "会议将在10分钟后开始"
bark-push --update abc123 --user alice --content "会议时间改为15分钟后"
```
如果提示配置文件不存在,请在当前目录或 ~/.bark-push/ 目录下创建 config.json 文件。
如果提示用户不存在,使用 --list-users 命令查看可用用户列表,并在 config.json 中添加用户配置。
确保 ~/.bark-push/ 目录具有写入权限,历史记录文件会自动创建。
如果配置了 ciphertext,所有推送将使用加密方式发送:
```json
{
"ciphertext": "your_encryption_key"
}
```
支持 Bark 的自定义动作功能,可以在通知中添加交互按钮:
```bash
bark-push --user alice --content "是否同意?" --action '{"action":"confirm","text":"同意"}'
```
使用脚本批量推送消息:
```bash
#!/bin/bash
for user in alice bob charlie; do
bark-push --user $user --content "批量通知消息"
done
```
欢迎提交问题和改进建议!
MIT License
Generated Mar 1, 2026
IT teams use this skill to send critical alerts for server issues like high CPU usage or downtime to all administrators via Bark notifications. It supports urgent levels and custom sounds for immediate attention, ensuring rapid response to infrastructure problems.
Project managers send updates on task completions or meeting reminders to multiple team members simultaneously. The skill allows grouping messages under work categories and updating sent notifications if plans change, improving team communication efficiency.
Individuals set up automated or manual reminders for appointments, medication schedules, or personal tasks using simple text pushes to their devices. The smart title generation and history tracking help users manage daily activities without complex setup.
Users share images or links, such as screenshots or article URLs, with friends or colleagues via Bark. The skill automatically detects content types and formats them appropriately, and allows updating shared messages if corrections are needed.
Offer a free tier with basic push features and limited users, then charge for advanced capabilities like unlimited history, custom groups, or priority support. Revenue comes from monthly subscriptions for teams or enterprises needing enhanced notification management.
Sell licenses to businesses for internal use, including features like enhanced security with ciphertext, dedicated support, and integration with existing monitoring tools. Revenue is generated through one-time purchases or annual contracts based on user count.
Provide APIs for developers to integrate Bark push functionality into their applications, such as CRM systems or IoT devices, with pay-per-use pricing or tiered plans. Revenue streams include API call charges and consulting for custom implementations.
💬 Integration Tip
Integrate with existing monitoring tools like Nagios or custom scripts by calling the skill via command-line to automate alert notifications without coding from scratch.
iMessage/SMS CLI for listing chats, history, watch, and sending.
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).
OpenClaw skill for designing Telegram Bot API workflows and command-driven conversations using direct HTTPS requests (no SDKs).