From d83c1f67ed9311b1819f56a49fe7f41c34401dc7 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 28 Aug 2022 09:09:35 +0800 Subject: [PATCH] opt some --- core/chat/pod.go | 1 + core/wiki/word.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/chat/pod.go b/core/chat/pod.go index e02c8575..7f891212 100644 --- a/core/chat/pod.go +++ b/core/chat/pod.go @@ -43,6 +43,7 @@ func init() { web.RenderWebsite(m, arg[0], path.Join(arg[2:]...)) // 节点网页 } else if arg[1] == CMD { + m.Option(ice.POD, "") m.Cmdy(web.SPACE, arg[0], m.Prefix(CMD), path.Join(arg[2:]...)) // 节点命令 } else { m.Cmdy(web.SPACE, m.Option(ice.MSG_USERPOD), "web.chat."+strings.TrimPrefix(path.Join(arg[1:]...), "chat/")) diff --git a/core/wiki/word.go b/core/wiki/word.go index e93427d0..3587bb3e 100644 --- a/core/wiki/word.go +++ b/core/wiki/word.go @@ -74,7 +74,7 @@ func init() { }}, mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) { - for _, p := range []string{"src/", "src/help/", "usr/icebergs/"} { + for _, p := range []string{"src/", "src/help/", "usr/icebergs/", "usr/linux-story/", "usr/nginx-story/", "usr/golang-story/", "usr/redis-story/", "usr/mysql-story/"} { m.Cmdy(nfs.DIR, p, kit.Dict(nfs.DIR_DEEP, ice.TRUE, nfs.DIR_REG, ".*\\.shy"), nfs.DIR_CLI_FIELDS) } }},