Lewati ke konten
TakoAPI
Kembali ke skill

telegram-footer-patch

oleh c-joey

Clawdbot Tools
297Unduhan dilaporkan oleh clawskills.sh
4Bintang
0Tayangan
0 sukaMasuk untuk menyukai skill ini
—Belum ada penilaian
Penilaian Anda

Ringkasan

Patch Telegram replies with OpenClaw footer.

Deskripsi

Apa yang Dilakukan Skill Ini

Patches OpenClaw's distributed JS files to append a footer line, `🧠 Model + 💭 Think + 📊 Context`, to every Telegram private-chat reply at the platform layer. Before and after each write, it creates timestamped backups, runs `node --check` syntax validation with auto-revert on failure, and provides rollback scripts plus reapply logic for post-upgrade scenarios.

Appending at the platform layer means the footer appears on every reply without relying on model memory or system prompt changes.

Kapan Menggunakannya

  • Checking which model handled a specific Telegram reply without asking
  • Monitoring context window usage across a private chat session
  • Verifying think mode is active during a Telegram conversation
  • Debugging model selection after an OpenClaw upgrade
  • Rolling back the footer patch when testing a new OpenClaw version

Contoh Alur Kerja

INPUT

User asks: I want to see model and context info on every Telegram reply

AGENT
  1. 1

    Run python3 scripts/patch_reply_footer.py --dry-run to preview which dist files will be modified

  2. 2

    Run python3 scripts/patch_reply_footer.py to apply the patch with automatic backup

  3. 3

    Script validates syntax with node --check and auto-reverts if validation fails

  4. 4

    Run openclaw gateway restart to activate the patched files

OUTPUT

All Telegram private-chat replies now include a footer line: `🧠 Model + 💭 Think + 📊 Context`

Instalasi

clawhub install c-joey/telegram-footer-patch

Jalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.

Tautan