forked from x/icebergs
24 lines
553 B
Go
24 lines
553 B
Go
package wiki
|
|
|
|
import (
|
|
ice "github.com/shylinux/icebergs"
|
|
kit "github.com/shylinux/toolkits"
|
|
)
|
|
|
|
const BRIEF = "brief"
|
|
|
|
func init() {
|
|
Index.Merge(&ice.Context{
|
|
Commands: map[string]*ice.Command{
|
|
BRIEF: {Name: "brief [name] text", Help: "摘要", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
|
_word_template(m, cmd, arg...)
|
|
}},
|
|
},
|
|
Configs: map[string]*ice.Config{
|
|
BRIEF: {Name: BRIEF, Help: "摘要", Value: kit.Data(
|
|
kit.MDB_TEMPLATE, `<p {{.OptionTemplate}}>{{.Option "text"}}</p>`,
|
|
)},
|
|
},
|
|
})
|
|
}
|