From 5121eb257eeab21c6eb8a8b56b6ae822215eefa6 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Tue, 12 Oct 2021 17:11:30 +0800 Subject: [PATCH] update --- core/xiaoai.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/xiaoai.go b/core/xiaoai.go index cdbec59..4150777 100644 --- a/core/xiaoai.go +++ b/core/xiaoai.go @@ -32,7 +32,7 @@ func init() { s.Reply("已开启对话模式。") for { if stop { - break + return nil } s.Await(s, func(s2 Sender) interface{} { msg := s2.GetContent() @@ -46,7 +46,7 @@ func init() { if msg == "" { msg = "小爱" } - return nil + return reply(msg) }, }, })