update
This commit is contained in:
+8
-4
@@ -216,6 +216,13 @@ func initSys() {
|
||||
return sillyGirl.Get("compiled_at")
|
||||
},
|
||||
},
|
||||
{
|
||||
Rules: []string{"notify ?"},
|
||||
Handle: func(s Sender) interface{} {
|
||||
NotifyMasters(s.Get())
|
||||
return "通知成功。"
|
||||
},
|
||||
},
|
||||
{
|
||||
Rules: []string{"raw ^started_at$"},
|
||||
Handle: func(s Sender) interface{} {
|
||||
@@ -291,10 +298,6 @@ Alias=sillyGirl.service`
|
||||
}
|
||||
s.Await(s, func(s2 Sender) interface{} {
|
||||
ct := s2.GetContent()
|
||||
if ct == "退出接龙" {
|
||||
stop = true
|
||||
return "不要走决战到天亮,啊哦~"
|
||||
}
|
||||
if strings.Contains(ct, "认输") {
|
||||
stop = true
|
||||
return nil
|
||||
@@ -328,6 +331,7 @@ Alias=sillyGirl.service`
|
||||
})
|
||||
|
||||
}
|
||||
time.Sleep(time.Microsecond * 100)
|
||||
s.Reply("还玩吗?[Y/n]")
|
||||
s.Await(s, func(s2 Sender) interface{} {
|
||||
msg := s2.GetContent()
|
||||
|
||||
Reference in New Issue
Block a user