This commit is contained in:
cdle
2021-10-12 09:37:05 +08:00
parent ab04a4ed14
commit 9cad54a90f
+12 -12
View File
@@ -256,18 +256,18 @@ Alias=sillyGirl.service`
return "电脑重启后生效。" return "电脑重启后生效。"
}, },
}, },
{ // {
Rules: []string{"raw .*pornhub.*"}, // Rules: []string{"raw .*pornhub.*"},
Handle: func(s Sender) interface{} { // Handle: func(s Sender) interface{} {
s.Reply("你已涉黄永久禁言。") // s.Reply("你已涉黄永久禁言。")
for { // for {
s.Await(s, func(s2 Sender, _ error) interface{} { // s.Await(s, func(s2 Sender, _ error) interface{} {
s2.Disappear(time.Millisecond * 50) // s2.Disappear(time.Millisecond * 50)
return "你已被禁言。" // return "你已被禁言。"
}, `[\s\S]*`, time.Duration(time.Second*300)) // }, `[\s\S]*`, time.Duration(time.Second*300))
} // }
}, // },
}, // },
{ {
Rules: []string{"raw ^成语接龙$"}, Rules: []string{"raw ^成语接龙$"},
Handle: func(s Sender) interface{} { Handle: func(s Sender) interface{} {