1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-27 17:58:29 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-07-26 22:04:44 +08:00
parent 03b074c909
commit 8a1c4ab943

View File

@ -68,7 +68,10 @@ func init() {
Index.MergeCommands(ice.Commands{ Index.MergeCommands(ice.Commands{
SPARK: {Name: "spark type=inner,shell,redis,mysql text", Help: "段落", Actions: ice.MergeActions(ice.Actions{ SPARK: {Name: "spark type=inner,shell,redis,mysql text", Help: "段落", Actions: ice.MergeActions(ice.Actions{
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
ice.AddRender(ice.RENDER_SCRIPT, func(msg *ice.Message, args ...ice.Any) string { return m.Cmdx(SPARK, SHELL, args) }) ice.AddRender(ice.RENDER_SCRIPT, func(msg *ice.Message, args ...ice.Any) string {
m.Option("_cmd_count", 0)
return m.Cmdx(SPARK, SHELL, args)
})
}}, }},
"inner": {Hand: func(m *ice.Message, arg ...string) { "inner": {Hand: func(m *ice.Message, arg ...string) {
if strings.Contains(arg[0], lex.NL) { if strings.Contains(arg[0], lex.NL) {