update
This commit is contained in:
+2
-1
@@ -12,4 +12,5 @@ data
|
|||||||
dwz
|
dwz
|
||||||
replies
|
replies
|
||||||
qinglongs
|
qinglongs
|
||||||
sets.conf
|
sets.conf
|
||||||
|
xiaoai.go
|
||||||
+8
-4
@@ -275,7 +275,13 @@ Alias=sillyGirl.service`
|
|||||||
}
|
}
|
||||||
s.Reply(data)
|
s.Reply(data)
|
||||||
stop := false
|
stop := false
|
||||||
|
if strings.Contains(data, "你赢") {
|
||||||
|
stop = true
|
||||||
|
}
|
||||||
for {
|
for {
|
||||||
|
if stop == true {
|
||||||
|
break
|
||||||
|
}
|
||||||
s.Await(s, func(s2 Sender) interface{} {
|
s.Await(s, func(s2 Sender) interface{} {
|
||||||
ct := s2.GetContent()
|
ct := s2.GetContent()
|
||||||
if ct == "退出接龙" {
|
if ct == "退出接龙" {
|
||||||
@@ -300,7 +306,7 @@ Alias=sillyGirl.service`
|
|||||||
ss := strings.Split(data, "\n")
|
ss := strings.Split(data, "\n")
|
||||||
return ss[len(ss)-1]
|
return ss[len(ss)-1]
|
||||||
}
|
}
|
||||||
if strings.Contains(data, "你赢了") {
|
if strings.Contains(data, "你赢") {
|
||||||
stop = true
|
stop = true
|
||||||
} else if strings.Contains(data, "恭喜") {
|
} else if strings.Contains(data, "恭喜") {
|
||||||
|
|
||||||
@@ -309,9 +315,7 @@ Alias=sillyGirl.service`
|
|||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
}, `[\s\S]*`, time.Duration(time.Second*300))
|
}, `[\s\S]*`, time.Duration(time.Second*300))
|
||||||
if stop == true {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user