feat: scaffold openai status bot

This commit is contained in:
tiennm99 committed 2026-06-19 14:39:19 +07:00
commit 87f091beb8
25 files changed
+1418

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
# Setup Guide
## Prerequisites
- Go 1.24+
- Redis 7+
- Telegram bot token from BotFather
## Local Docker Run
```bash
cp .env.example .env
# set TELEGRAM_BOT_TOKEN in .env
docker compose up --build
```
## Local Go Run
Start Redis:
```bash
docker run --rm -p 6379:6379 redis:7-alpine
```
Run bot:
```bash
cp .env.example .env
# export TELEGRAM_BOT_TOKEN or source .env with your shell workflow
go run ./cmd/openai-status-bot
```
## Verification
```bash
go test ./...
go build ./cmd/openai-status-bot
```
Then send `/start` to the Telegram bot and run `/status`.