refactor: make setup script interactive instead of using env vars

This commit is contained in:
2026-04-09 09:02:54 +07:00
parent e8b30743d3
commit fce23b3c59
3 changed files with 35 additions and 24 deletions

View File

@@ -92,10 +92,10 @@ Note the worker URL from the output (e.g., `https://claude-status-webhook.<your-
Run the setup script to register bot commands and set the Telegram webhook:
```bash
BOT_TOKEN=your-token WORKER_URL=https://your-worker.workers.dev node scripts/setup-bot.js
node scripts/setup-bot.js
```
You should see `{"ok":true}` for both webhook and commands.
It will prompt for your bot token and worker URL. You should see `{"ok":true}` for both webhook and commands.
### 7. Configure Statuspage webhook