mirror of
https://github.com/tiennm99/openai-status-bot.git
synced 2026-10-14 12:16:58 +00:00
feat: scaffold openai status bot
This commit is contained in:
commit
87f091beb8
25 files changed
+1418
No files matched your search
@@ -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`.
|
||||
Reference in new issue
Block a user