1
0
forked from x/icebergs
icebergs/misc/lark/duty.go
2021-07-24 13:03:05 +08:00

17 lines
392 B
Go

package lark
import (
ice "github.com/shylinux/icebergs"
)
const DUTY = "duty"
func init() {
Index.Merge(&ice.Context{Commands: map[string]*ice.Command{
DUTY: {Name: "duty [title] text auto", Help: "通告", Hand: func(m *ice.Message, c *ice.Context, key string, arg ...string) {
duty := m.Cmd(APP, m.Option(APP_ID)).Append(DUTY)
m.Cmdy(SEND, arg[0], duty, arg[1:])
}},
}})
}