🎨 优化vtb插件代码,更换shadiao的api (#206)

* 🎨 优化vtb插件代码,更换shadiao的api

* 🎨 正则全局变量

Co-authored-by: haibaraguo <haibaraguo@yeahka.com>
This commit is contained in:
himawari
2022-04-28 17:37:57 +08:00
committed by GitHub
parent ba4ca11c83
commit 484fef1228
3 changed files with 109 additions and 146 deletions

View File

@@ -42,7 +42,7 @@ func init() {
})
cachePath := engine.DataFolder() + "cache/"
go func() {
os.RemoveAll(cachePath)
_ = os.RemoveAll(cachePath)
err := os.MkdirAll(cachePath, 0755)
if err != nil {
panic(err)
@@ -234,7 +234,7 @@ func init() {
err = graph.Render(chart.PNG, f)
_ = f.Close()
if err != nil {
os.Remove(drawedFile)
_ = os.Remove(drawedFile)
ctx.SendChain(message.Text("ERROR:", err))
return
}