1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-09 20:40:27 +08:00

add plugin

This commit is contained in:
源文雨
2022-06-01 00:39:38 +08:00
parent b2d1f0c249
commit 473331b38a
10 changed files with 529 additions and 46 deletions

2
bot.go
View File

@@ -17,7 +17,7 @@ type Bot struct {
// Debug 控制调试信息的输出与否
Debug bool `json:"debug"`
// Handler 注册对各种事件的处理
Handler Handler
Handler *Handler
// handlers 方便调用的 handler
handlers map[string]GeneralHandleType
}