✨ feat(core): 初始化 Bot 命令处理服务器
- 基于 Gin 框架搭建 HTTP 服务,接收并处理 Bot 命令请求 - 实现插件化命令系统,支持通过 Plugin 接口扩展新命令 - 内置菜单、启用/禁用、时间查询等基础命令 - 新增图片生成插件,对接 OpenAI Images API - 支持管理员权限控制、命令动态启禁用 - 提供完整配置管理(.env)与 Docker 部署方案
This commit is contained in:
20
.env.example
Normal file
20
.env.example
Normal file
@@ -0,0 +1,20 @@
|
||||
# Server
|
||||
SERVER_ADDR=127.0.0.1:8000
|
||||
|
||||
# OpenAI Image Generation
|
||||
OPENAI_API_KEY=sk-xxxxxx
|
||||
OPENAI_BASE_URL=https://api.openai.com
|
||||
OPENAI_MODEL=gpt-image-2
|
||||
REQUEST_TIMEOUT=120
|
||||
IMAGE_COUNT=1
|
||||
IMAGE_OUTPUT_DIR=images
|
||||
|
||||
# Upload
|
||||
UPLOAD_URL=http://localhost:8082/upload
|
||||
UPLOAD_API_KEY=xxxx
|
||||
|
||||
# Proxy (leave empty to disable)
|
||||
PROXY=
|
||||
|
||||
# Admin (comma-separated user IDs)
|
||||
ADMIN_USERS=
|
||||
Reference in New Issue
Block a user