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

23 lines
528 B
Go

package mp
import (
ice "github.com/shylinux/icebergs"
"github.com/shylinux/icebergs/base/web"
"github.com/shylinux/icebergs/core/chat"
)
const MP = "mp"
var Index = &ice.Context{Name: MP, Help: "小程序",
Commands: map[string]*ice.Command{
ice.CTX_INIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Load()
}},
ice.CTX_EXIT: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Save()
}},
},
}
func init() { chat.Index.Register(Index, &web.Frame{}) }