From 1da3486d00a26ae287bffbb89b09096d5f064605 Mon Sep 17 00:00:00 2001 From: MoeMagicMango Date: Sat, 12 Feb 2022 20:46:34 +0800 Subject: [PATCH] Add files via upload --- plugin_thesaurus/chat.go | 4 ++-- plugin_thesaurus/data.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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() }() }