From b768e48a744b721fc83eb907d0ae295eb1aa1556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Fri, 2 Dec 2022 20:35:47 +0800 Subject: [PATCH] add succ hint --- plugin/thesaurus/chat.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/thesaurus/chat.go b/plugin/thesaurus/chat.go index 00e78571..a03af0cd 100644 --- a/plugin/thesaurus/chat.go +++ b/plugin/thesaurus/chat.go @@ -51,6 +51,7 @@ func init() { ctx.SendChain(message.Text("ERROR: ", err)) return } + ctx.SendChain(message.Text("成功!")) }) engine.OnRegex(`^设置词库触发概率\s*0.(\d)$`, zero.AdminPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) { c, ok := ctx.State["manager"].(*ctrl.Control[*zero.Ctx]) @@ -74,6 +75,7 @@ func init() { ctx.SendChain(message.Text("ERROR: ", err)) return } + ctx.SendChain(message.Text("成功!")) }) go func() { data, err := engine.GetLazyData("dict.txt", false)