1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-07 21:56:54 +08:00

opt feel.go

This commit is contained in:
harveyshao 2022-11-10 23:09:00 +08:00
parent 8036ff4420
commit 4728ea3244

View File

@ -2,17 +2,20 @@ package wiki
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/ctx"
kit "shylinux.com/x/toolkits"
)
const FEEL = "feel"
func init() {
Index.MergeCommands(ice.Commands{
FEEL: {Name: "feel path auto record1 record upload prev next actions", Help: "影音媒体", Actions: ice.MergeActions(ice.Actions{
"record1": {Name: "record1", Help: "截图", Hand: func(m *ice.Message, arg ...string) {}},
"record": {Name: "record", Help: "录屏", Hand: func(m *ice.Message, arg ...string) {}},
FEEL: {Name: "feel path auto record1 record2 upload prev next actions", Help: "影音媒体", Actions: ice.MergeActions(ice.Actions{
"record1": {Name: "record1", Help: "截图"},
"record2": {Name: "record2", Help: "录屏"},
}, WikiAction(ice.USR_LOCAL_IMAGE, "png|PNG|jpg|JPG|jpeg|mp4|m4v|MOV|webm")), Hand: func(m *ice.Message, arg ...string) {
_wiki_list(m, arg...)
_wiki_list(m, kit.Slice(arg, 0, 1)...)
ctx.DisplayLocal(m, "")
}},
})
}