From fce23b3c59cd149470f8d33283ec6152f833c495 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Thu, 9 Apr 2026 09:02:54 +0700 Subject: [PATCH] refactor: make setup script interactive instead of using env vars --- CLAUDE.md | 2 +- README.md | 4 ++-- scripts/setup-bot.js | 53 ++++++++++++++++++++++++++------------------ 3 files changed, 35 insertions(+), 24 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 6e8de80..6d3044e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -11,7 +11,7 @@ Telegram bot that forwards [status.claude.com](https://status.claude.com/) (Atla - `npm run dev` — Start local dev server (wrangler dev, emulates KV + Queues locally) - `npm run deploy` — Deploy to Cloudflare Workers - `npx wrangler deploy --dry-run` — Verify build without deploying -- `node scripts/setup-bot.js` — One-time: register bot commands + set Telegram webhook (requires BOT_TOKEN and WORKER_URL env vars) +- `node scripts/setup-bot.js` — One-time: register bot commands + set Telegram webhook (interactive prompts) No test framework configured yet. No linter configured. diff --git a/README.md b/README.md index 8cc6ec2..376b716 100644 --- a/README.md +++ b/README.md @@ -92,10 +92,10 @@ Note the worker URL from the output (e.g., `https://claude-status-webhook.