From dc1f2d0981f4cc3e99d487f81d68266cb61f51e8 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Wed, 13 Oct 2021 09:29:16 +0800 Subject: [PATCH] update --- core/xiaoai.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/xiaoai.go b/core/xiaoai.go index 7ec5138..346f6e1 100644 --- a/core/xiaoai.go +++ b/core/xiaoai.go @@ -31,6 +31,7 @@ func init() { return str } msg := s.Get() + msg = strings.Trim(msg, " ") if strings.Contains(msg, "对话模式") { stop := false s.Reply(reply("小爱")) @@ -40,6 +41,7 @@ func init() { } s.Await(s, func(s2 Sender) interface{} { msg := s2.GetContent() + msg = strings.Trim(msg, " ") if strings.Contains(msg, "闭嘴") { stop = true }