F5 Telegram Notify
ส่งการแจ้งเตือน Telegram เมื่อ F5-TTS training เสร็จหรือล้มเหลว ใช้สำหรับ Docker environment
MIT-0 · Free to use, modify, and redistribute. No attribution required.
⭐ 0 · 183 · 1 current installs · 1 all-time installs
by@pbseiya
MIT-0
Security Scan
OpenClaw
Suspicious
high confidencePurpose & Capability
Name/description match the code (notification around F5-TTS training). However the registry metadata declares no required env vars/credentials while the SKILL.md and scripts clearly require TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID — a mismatch. Also SKILL.md and scripts reference absolute developer paths (e.g. /home/seiya/...), which are environment-specific and surprising for a generic skill.
Instruction Scope
Runtime instructions and scripts will read .env files from multiple locations (including an absolute project path) and, on failure, collect and send the last ~50 lines of training logs ($LAST_LOG) in docker_train.sh and command/exit info in train_with_notify.sh. That means runtime behavior can transmit local log contents and command-line context to the Telegram account controlled by the token — which is broader than a simple 'notify success/failure' if those logs/commands contain sensitive data.
Install Mechanism
No install spec and no downloads; this is an instruction + script bundle only, which reduces installation risk. The code runs local shell and Node.js but does not install external packages automatically.
Credentials
The skill legitimately needs TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID, but the registry metadata did not declare them (incoherent). More importantly, the scripts include hard-coded default values for these variables (e.g. TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID embedded in docker_notify.sh and notify.sh). If a user does not supply their own env vars, notifications (including potentially large log excerpts) will be sent to the embedded bot/chat controlled by whoever published the skill, which risks leaking local information.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and does not require elevated system privileges. It runs only when invoked via the provided scripts.
What to consider before installing
Do not run these scripts without reviewing and editing them. Specific recommendations:
- Remove or replace the hard-coded TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID in docker_notify.sh and notify.sh before use; supply your own token/chat via environment variables or a local .env under your control.
- Assume failure notifications may include snippets of training logs and the command used; inspect docker_train.sh and train_with_notify.sh and remove or sanitize any log or command text you do not want sent externally.
- Modify notify.mjs's loadEnv paths so it only reads .env from an explicit, expected location (and not an absolute path to someone else's project). Prefer to rely on environment variables rather than auto-loading arbitrary files.
- Rotate any Telegram token that may have been exposed in repositories or CI, and verify ownership of the bot/chat before trusting notifications.
- Test in an isolated environment with no sensitive data to confirm behavior, and consider implementing an explicit opt-in configuration (no defaults that point to a third-party account).
Given the embedded credentials and log-sending behavior, treat this skill as potentially leaking data until you sanitize and reconfigure it.Like a lobster shell, security has layers — review code before you run it.
Current versionv1.0.0
Download ziplatest
License
MIT-0
Free to use, modify, and redistribute. No attribution required.
SKILL.md
F5-Telegram-Notify Skill
สคริปต์สำหรับส่งการแจ้งเตือน Telegram เมื่อ F5-TTS training process เสร็จสิ้นหรือล้มเหลว
การใช้งาน
1. ส่งแจ้งเตือนสำเร็จ
node /home/seiya/projects/openclaw/workspace/skills/f5-telegram-notify/scripts/notify.mjs success "Training เสร็จแล้ว!" "model_name" "/path/to/checkpoint"
2. ส่งแจ้งเตือนล้มเหลว
node /home/seiya/projects/openclaw/workspace/skills/f5-telegram-notify/scripts/notify.mjs error "Training ล้มเหลว: CUDA out of memory" "model_name"
3. ส่งแจ้งเตือนเริ่ม training
node /home/seiya/projects/openclaw/workspace/skills/f5-telegram-notify/scripts/notify.mjs start "เริ่ม training แล้ว" "model_name"
พารามิเตอร์
- status:
success|error|start - message: ข้อความที่ต้องการส่ง
- model_name: ชื่อโมเดล (optional)
- checkpoint_path: Path ไปยัง checkpoint (optional, สำหรับ success)
Config Required
ต้องมีไฟล์ .env ที่มี:
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
โครงสร้างไฟล์
f5-telegram-notify/
├── SKILL.md
├── scripts/
│ └── notify.mjs
└── README.md
Files
8 totalSelect a file
Select a file to preview.
Comments
Loading comments…
