1
0
forked from x/icebergs
icebergs/base/web/admin.go
2023-07-22 10:57:06 +08:00

17 lines
393 B
Go

package web
import (
ice "shylinux.com/x/icebergs"
kit "shylinux.com/x/toolkits"
)
func init() {
Index.MergeCommands(ice.Commands{
"admin": {Name: "admin", Help: "管理", Hand: func(m *ice.Message, arg ...string) {
args := []string{}
kit.For(arg[1:], func(v string) { args = append(args, ice.ARG, v) })
m.Cmdy(SPIDE, ice.OPS, SPIDE_RAW, "/chat/cmd/"+arg[0], args)
}},
})
}