forked from x/icebergs
add steam pod
This commit is contained in:
parent
d640c1c4d6
commit
c2fff569b4
@ -252,6 +252,15 @@ var Index = &ice.Context{Name: "chat", Help: "聊天中心",
|
|||||||
}},
|
}},
|
||||||
"/steam": {Name: "/steam", Help: "大气层", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
"/steam": {Name: "/steam", Help: "大气层", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
if len(arg) < 2 {
|
if len(arg) < 2 {
|
||||||
|
if pod := m.Option("pod"); pod != "" {
|
||||||
|
m.Option("pod", "")
|
||||||
|
list := []string{}
|
||||||
|
m.Cmdy(ice.WEB_SPACE, pod, "web.chat./steam").Table(func(index int, value map[string]string, head []string) {
|
||||||
|
list = append(list, pod+"."+value["name"])
|
||||||
|
})
|
||||||
|
m.Append("name", list)
|
||||||
|
return
|
||||||
|
}
|
||||||
// 设备列表
|
// 设备列表
|
||||||
m.Richs(ice.WEB_SPACE, nil, "*", func(key string, value map[string]interface{}) {
|
m.Richs(ice.WEB_SPACE, nil, "*", func(key string, value map[string]interface{}) {
|
||||||
m.Push(key, value, []string{"type", "name", "user"})
|
m.Push(key, value, []string{"type", "name", "user"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user