package chat import ( "github.com/shylinux/icebergs" "github.com/shylinux/toolkits" ) const LEGAL = "legal" const FOOTER = "footer" func init() { Index.Merge(&ice.Context{ Configs: map[string]*ice.Config{ FOOTER: {Name: "footer", Help: "状态栏", Value: kit.Dict( LEGAL, []interface{}{`shylinuxc@gmail.com`}, )}, }, Commands: map[string]*ice.Command{ "/" + FOOTER: {Name: "/footer", Help: "状态栏", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { kit.Fetch(m.Confv(FOOTER, LEGAL), func(index int, value string) { m.Echo(value) }) }}, }, }, nil) }