✨ feat(core): 初始化 Bot 命令处理服务器
- 基于 Gin 框架搭建 HTTP 服务,接收并处理 Bot 命令请求 - 实现插件化命令系统,支持通过 Plugin 接口扩展新命令 - 内置菜单、启用/禁用、时间查询等基础命令 - 新增图片生成插件,对接 OpenAI Images API - 支持管理员权限控制、命令动态启禁用 - 提供完整配置管理(.env)与 Docker 部署方案
This commit is contained in:
11
command/init.go
Normal file
11
command/init.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
// Init 初始化命令系统(仅注册内置命令,插件由 main.go 调用)
|
||||
func Init() {
|
||||
RegisterBuiltinCommands()
|
||||
log.Printf("registered %d commands", len(AllCommands()))
|
||||
}
|
||||
Reference in New Issue
Block a user