🎨 改进代码样式

This commit is contained in:
github-actions[bot] 2022-02-12 12:50:57 +00:00
parent a233586dfe
commit c8b4827e91
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ import (
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_atri" // ATRI词库 _ "github.com/FloatTech/ZeroBot-Plugin/plugin_atri" // ATRI词库
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_manager" // 群管 _ "github.com/FloatTech/ZeroBot-Plugin/plugin_manager" // 群管
_ "github.com/FloatTech/ZeroBot-Plugin/plugin_thesaurus" // 不是很ex的基础词库 _ "github.com/FloatTech/ZeroBot-Plugin/plugin_thesaurus" // 不是很ex的基础词库
// ^^^^ // // ^^^^ //

View File

@ -21,11 +21,11 @@ var (
DisableOnDefault: true, DisableOnDefault: true,
Help: "thesaurus\n- 稍微干净一点的chat回复 删掉了一些有点ex的w((", Help: "thesaurus\n- 稍微干净一点的chat回复 删掉了一些有点ex的w((",
}) })
kimogomap = make(kimogo, 256) kimogomap = make(kimogo, 256)
chatList = make([]string, 0, 256) chatList = make([]string, 0, 256)
) )
func init() { func init() {
initthesaurusList(func() { initthesaurusList(func() {
engine.OnFullMatchGroup(chatList, zero.OnlyToMe).SetBlock(true).Handle( engine.OnFullMatchGroup(chatList, zero.OnlyToMe).SetBlock(true).Handle(
func(ctx *zero.Ctx) { func(ctx *zero.Ctx) {