1
0
forked from x/icebergs
icebergs/misc/git/trend.go
2020-10-23 22:41:01 +08:00

24 lines
519 B
Go

package git
import (
ice "github.com/shylinux/icebergs"
kit "github.com/shylinux/toolkits"
)
const TREND = "trend"
func init() {
Index.Merge(&ice.Context{
Commands: map[string]*ice.Command{
TREND: {Name: "trend name begin_time@date auto", Help: "趋势图", Meta: kit.Dict(
"display", "/plugin/story/trend.js",
), Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
if len(arg) == 0 {
m.Option(ice.MSG_DISPLAY, "table")
}
m.Cmdy(TOTAL, arg)
}},
},
}, nil)
}