1
0
forked from x/icebergs
icebergs/base/lex/lex.go
2020-09-17 07:03:15 +08:00

19 lines
414 B
Go

package lex
import (
ice "github.com/shylinux/icebergs"
)
const LEX = "lex"
var Index = &ice.Context{Name: LEX, Help: "词法模块",
Configs: map[string]*ice.Config{},
Commands: map[string]*ice.Command{
"hi": {Name: "hi", Help: "hello", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Echo("hello %s world", c.Name)
}},
},
}
func init() { ice.Index.Register(Index, nil) }