forked from x/icebergs
20 lines
494 B
Go
20 lines
494 B
Go
package chat
|
|
|
|
import (
|
|
ice "shylinux.com/x/icebergs"
|
|
"shylinux.com/x/icebergs/base/cli"
|
|
"shylinux.com/x/icebergs/base/web"
|
|
)
|
|
|
|
const SEARCH = "search"
|
|
|
|
func init() {
|
|
Index.MergeCommands(ice.Commands{
|
|
SEARCH: {Help: "搜索", Actions: ice.MergeActions(ice.Actions{
|
|
cli.OPENS: {Hand: func(m *ice.Message, arg ...string) { cli.Opens(m, arg...) }},
|
|
}, web.ApiAction()), Hand: func(m *ice.Message, arg ...string) {
|
|
m.Cmdy(web.Space(m, m.Option(ice.POD)), "mdb.search", arg)
|
|
}},
|
|
})
|
|
}
|