1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-07 10:00:24 +08:00

优化代码结构

This commit is contained in:
源文雨
2022-05-31 23:12:43 +08:00
parent e37701840d
commit b2d1f0c249
3 changed files with 22 additions and 7 deletions

2
bot.go
View File

@@ -18,6 +18,8 @@ type Bot struct {
Debug bool `json:"debug"`
// Handler 注册对各种事件的处理
Handler Handler
// handlers 方便调用的 handler
handlers map[string]GeneralHandleType
}
// Start clients without blocking