mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
21 lines
536 B
Go
21 lines
536 B
Go
package wiki
|
|
|
|
import (
|
|
ice "shylinux.com/x/icebergs"
|
|
kit "shylinux.com/x/toolkits"
|
|
)
|
|
|
|
const BRIEF = "brief"
|
|
|
|
func init() {
|
|
Index.Merge(&ice.Context{Commands: map[string]*ice.Command{
|
|
BRIEF: {Name: "brief text", Help: "摘要", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
|
_wiki_template(m, cmd, "", arg[0], arg[1:]...)
|
|
}},
|
|
}, Configs: map[string]*ice.Config{
|
|
BRIEF: {Name: BRIEF, Help: "摘要", Value: kit.Data(
|
|
kit.MDB_TEMPLATE, `<p {{.OptionTemplate}}>{{.Option "text"}}</p>`,
|
|
)},
|
|
}})
|
|
}
|