精简代码

This commit is contained in:
源文雨
2022-09-06 19:31:01 +08:00
parent 6acd930455
commit 676ea312a3
4 changed files with 12 additions and 17 deletions

11
main.go
View File

@@ -24,8 +24,10 @@ import (
// vvvvvvv高优先级区vvvvvvv //
// vvvvvvvvvvvvvv //
// vvvv //
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/antiabuse" // 违禁词
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chat" // 基础词库
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/chat" // 基础词库
_ "github.com/FloatTech/ZeroBot-Plugin/plugin/sleep_manage" // 统计睡眠时间
@@ -163,6 +165,13 @@ import (
// -----------------------以上为内置依赖,勿动------------------------ //
)
type zbpcfg struct {
Z zero.Config `json:"zero"`
W []*driver.WSClient `json:"ws"`
}
var config zbpcfg
func init() {
sus := make([]int64, 0, 16)
// 解析命令行参数