Claudebot Add Command banner
Jeffrey0117 Jeffrey0117

Claudebot Add Command

Development community

Description

--- name: claudebot-add-command description: 如何新增一個 Telegram bot 指令。固定三步驟:建立 command file → bot.ts 註冊 → help.ts 更新。 --- # Adding a New Bot Command ## Checklist (3 steps, do ALL) 1. **Create command file** in `src/bot/commands/<name>.ts` 2. **Register in bot.ts** — add import + `bot.command()` 3. **Update help.ts** — add to HELP_TEXT (use unicode escapes for Chinese) ## Step 1: Command File Template ```typescript // src/bot/commands/example.ts import type { BotContext } from '../../types/con

Installation

Installs to ~/.claude/skills/jeffrey0117-claudebot-claudebot-add-command/SKILL.md

Terminal
mkdir -p ~/.claude/skills/jeffrey0117-claudebot-claudebot-add-command && curl -fsSL https://raw.githubusercontent.com/Jeffrey0117/ClaudeBot/HEAD/.claude/skills/claudebot-add-command.md -o ~/.claude/skills/jeffrey0117-claudebot-claudebot-add-command/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository