This commit is contained in:
cdle
2021-10-06 20:57:07 +08:00
parent 42b423fe80
commit c83cf25331
+1 -1
View File
@@ -60,7 +60,7 @@ func init() {
paths := []string{}
for _, v := range regexp.MustCompile(`\[CQ:image,file=([^\[\]]+)\]`).FindAllStringSubmatch(s, -1) {
paths = append(paths, core.ExecPath+"/data/images/"+v[1])
s = strings.Replace(s, fmt.Sprintf(v[0]), "", -1)
s = strings.Replace(s, fmt.Sprintf(`[CQ:image,file=%s]`, v[1]), "", -1)
}
ct := &tb.Chat{ID: int64(i)}