mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 06:20:08 +08:00
🐛 fix setutime mkdir
This commit is contained in:
parent
876fd425e4
commit
c524c68809
@ -4,6 +4,7 @@ package setutime
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@ -61,6 +62,7 @@ func init() { // 插件主体
|
|||||||
max: 10,
|
max: 10,
|
||||||
pool: map[string][]*pixiv.Illust{},
|
pool: map[string][]*pixiv.Illust{},
|
||||||
}
|
}
|
||||||
|
_ = os.MkdirAll("data/SetuTime", 0755)
|
||||||
// 如果数据库不存在则下载
|
// 如果数据库不存在则下载
|
||||||
_, _ = fileutil.GetLazyData(cache.db.DBPath, false, false)
|
_, _ = fileutil.GetLazyData(cache.db.DBPath, false, false)
|
||||||
err := cache.db.Open()
|
err := cache.db.Open()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user