diff --git a/plugin_thesaurus/chat.go b/plugin_thesaurus/chat.go index 8aa68634..a71dc003 100644 --- a/plugin_thesaurus/chat.go +++ b/plugin_thesaurus/chat.go @@ -12,7 +12,7 @@ import ( ) const ( - dbpath = "data/Purechat/" + dbpath = "data/thesaurus/" dbfile = dbpath + "kimoi_clear.json" ) @@ -26,7 +26,7 @@ var ( ) func init() { - initPureChatList(func() { + initthesaurusList(func() { engine.OnFullMatchGroup(chatList, zero.OnlyToMe).SetBlock(true).Handle( func(ctx *zero.Ctx) { key := ctx.MessageString() diff --git a/plugin_thesaurus/data.go b/plugin_thesaurus/data.go index c64985c7..dac34412 100644 --- a/plugin_thesaurus/data.go +++ b/plugin_thesaurus/data.go @@ -14,7 +14,7 @@ import ( type kimogo = map[string]*[]string -func initPureChatList(postinit func()) { +func initthesaurusList(postinit func()) { go func() { defer order.DoneOnExit()() process.SleepAbout1sTo2s() @@ -30,7 +30,7 @@ func initPureChatList(postinit func()) { for k := range kimogomap { chatList = append(chatList, k) } - logrus.Infoln("[purechat]加载", len(chatList), "条kimoi") + logrus.Infoln("[thesaurus]加载", len(chatList), "条kimoi") postinit() }() }