This commit is contained in:
cdle
2021-10-19 22:43:05 +08:00
parent 852665999e
commit e797ce1c74
10 changed files with 35 additions and 20 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ func start() {
core.GroupPushs["qq"] = func(i, _ interface{}, s string) {
paths := []string{}
for _, v := range regexp.MustCompile(`\[TG:image,file=([^\[\]]+)\]`).FindAllStringSubmatch(s, -1) {
paths = append(paths, core.ExecPath+"/data/images/"+v[1])
paths = append(paths, "data/images/"+v[1])
s = strings.Replace(s, fmt.Sprintf(`[TG:image,file=%s]`, v[1]), "", -1)
}
imgs := []message.IMessageElement{}