1
0
forked from x/icebergs
icebergs/core/gdb/gdb.go
2019-12-14 20:18:08 +08:00

18 lines
428 B
Go

package gdb
import (
"github.com/shylinux/icebergs"
)
var Index = &ice.Context{Name: "gdb", Help: "调试模块",
Caches: map[string]*ice.Cache{},
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) }