mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
🎨 改进代码样式
This commit is contained in:
parent
a233586dfe
commit
c8b4827e91
2
main.go
2
main.go
@ -29,7 +29,7 @@ import (
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_atri" // ATRI词库
|
||||
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_manager" // 群管
|
||||
|
||||
|
||||
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_thesaurus" // 不是很ex的基础词库
|
||||
|
||||
// ^^^^ //
|
||||
|
||||
@ -21,11 +21,11 @@ var (
|
||||
DisableOnDefault: true,
|
||||
Help: "thesaurus\n- 稍微干净一点的chat回复 删掉了一些有点ex的w((",
|
||||
})
|
||||
kimogomap = make(kimogo, 256)
|
||||
chatList = make([]string, 0, 256)
|
||||
kimogomap = make(kimogo, 256)
|
||||
chatList = make([]string, 0, 256)
|
||||
)
|
||||
|
||||
func init() {
|
||||
func init() {
|
||||
initthesaurusList(func() {
|
||||
engine.OnFullMatchGroup(chatList, zero.OnlyToMe).SetBlock(true).Handle(
|
||||
func(ctx *zero.Ctx) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user