mirror of
https://shylinux.com/x/icebergs
synced 2025-04-27 01:48:27 +08:00
25 lines
652 B
Go
25 lines
652 B
Go
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{}{`<a href="mailto:shylinuxc@gmail.com">shylinuxc@gmail.com</a>`},
|
|
)},
|
|
},
|
|
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)
|
|
}
|