This commit is contained in:
cdle
2021-10-20 21:48:47 +08:00
parent 5918b4b02a
commit 904bdc20c8
+24
View File
@@ -0,0 +1,24 @@
package core
import "strings"
func init() {
go func() {
recall := sillyGirl.Get("recall")
if recall != "" {
rules := []string{}
for _, v := range strings.Split(recall, "&") {
rules = append(rules, "raw "+v)
}
AddCommand("", []Function{
{
Rules: rules,
Handle: func(s Sender) interface{} {
s.Delete()
return nil
},
},
})
}
}()
}