This commit is contained in:
cdle
2021-09-16 15:52:32 +08:00
parent 241f487d14
commit cac60b4f8d
4 changed files with 35 additions and 18 deletions
+11
View File
@@ -2,12 +2,23 @@ package core
import (
"errors"
"strings"
"github.com/cdle/sillyGirl/im"
)
func init() {
AddCommand("", []Function{
{
Rules: []string{"raw 命令"},
Handle: func(_ im.Sender) interface{} {
ss := []string{}
for _, f := range functions {
ss = append(ss, strings.Join(f.Rules, " "))
}
return strings.Join(ss, "\n")
},
},
{
Admin: true,
Rules: []string{"set ? ? ?"},