This commit is contained in:
cdle
2021-10-13 09:29:16 +08:00
parent 071980f979
commit dc1f2d0981
+2
View File
@@ -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
}