mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-07-17 12:17:47 +00:00
572 B
572 B
Setup Guide
Prerequisites
- Go 1.24+
- Redis 7+
- Telegram bot token from BotFather
Local Docker Run
cp .env.example .env
# set TELEGRAM_BOT_TOKEN in .env
docker compose up --build
Local Go Run
Start Redis:
docker run --rm -p 6379:6379 redis:7-alpine
Run bot:
cp .env.example .env
# export TELEGRAM_BOT_TOKEN or source .env with your shell workflow
go run ./cmd/openai-status-bot
Verification
go test ./...
go build ./cmd/openai-status-bot
Then send /start to the Telegram bot and run /status.