diff --git a/core/recall.go b/core/recall.go new file mode 100644 index 0000000..b8c5f34 --- /dev/null +++ b/core/recall.go @@ -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 + }, + }, + }) + } + }() +}