1
0
forked from x/icebergs
icebergs/misc/wx/event.go
2021-11-09 20:15:41 +08:00

23 lines
601 B
Go

package wx
import (
ice "shylinux.com/x/icebergs"
kit "shylinux.com/x/toolkits"
)
const EVENT = "event"
func init() {
Index.Merge(&ice.Context{Configs: map[string]*ice.Config{
EVENT: {Name: EVENT, Help: "事件", Value: kit.Data()},
}, Commands: map[string]*ice.Command{
EVENT: {Name: "event", Help: "事件", Action: map[string]*ice.Action{
"subscribe": {Name: "subscribe", Help: "订阅", Hand: func(m *ice.Message, arg ...string) {
m.Cmdy(MENU, "home")
}},
"unsubscribe": {Name: "unsubscribe", Help: "取关", Hand: func(m *ice.Message, arg ...string) {
}},
}},
}})
}