mirror of
https://shylinux.com/x/icebergs
synced 2025-04-27 01:48:27 +08:00
28 lines
776 B
Go
28 lines
776 B
Go
package chat
|
|
|
|
import (
|
|
ice "shylinux.com/x/icebergs"
|
|
"shylinux.com/x/icebergs/base/aaa"
|
|
"shylinux.com/x/icebergs/base/cli"
|
|
"shylinux.com/x/icebergs/base/ctx"
|
|
"shylinux.com/x/icebergs/base/web"
|
|
)
|
|
|
|
const FOOTER = "footer"
|
|
|
|
func init() {
|
|
Index.MergeCommands(ice.Commands{
|
|
web.P(FOOTER): {Name: "/footer", Help: "状态栏", Actions: ice.MergeActions(ice.Actions{
|
|
ice.RUN: {Hand: func(m *ice.Message, arg ...string) {
|
|
if aaa.Right(m, arg) {
|
|
if m.Cmdy(arg); m.IsErrNotFound() {
|
|
m.RenderResult(m.Cmdx(cli.SYSTEM, arg))
|
|
}
|
|
}
|
|
}},
|
|
}, ctx.CmdAction(TITLE, `<a href="mailto:shylinuxc@gmail.com">shylinuxc@gmail.com</a>`), aaa.WhiteAction(ctx.COMMAND, ice.RUN)), Hand: func(m *ice.Message, arg ...string) {
|
|
m.Result(m.Configv(TITLE))
|
|
}},
|
|
})
|
|
}
|