1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-01-05 12:45:21 +08:00
parent d4c73ce195
commit 813ec2b17a

View File

@ -23,7 +23,7 @@ func init() {
IMAGE: {Name: "image path", Help: "图片", Actions: ice.Actions{
"material": {Hand: func(m *ice.Message, arg ...string) {
m.Info("what %v", m.FormatChain())
m.Cmdy("", path.Join("usr/material", strings.TrimPrefix(path.Dir(m.Option("_script")), "usr/"), arg[0]))
m.Cmdy(IMAGE, path.Join("usr/material", strings.TrimPrefix(path.Dir(m.Option("_script")), "usr/"), arg[0]))
}},
}, Hand: func(m *ice.Message, arg ...string) {
arg = _name(m, arg)