mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
⚡️ remove cachefile on start
This commit is contained in:
parent
d983c66597
commit
4b194627bb
12
.gitignore
vendored
12
.gitignore
vendored
@ -1,15 +1,3 @@
|
||||
data/SetuTime/cache
|
||||
data/control
|
||||
data/SetuTime/search
|
||||
data/manager
|
||||
data/acgimage
|
||||
data/saucenao
|
||||
data/fortune
|
||||
data/hs
|
||||
data/nsetu
|
||||
data/nwife
|
||||
data/sleep
|
||||
data/score
|
||||
plugins/*.so
|
||||
plugins/*.dll
|
||||
.idea/
|
||||
|
||||
2
data
2
data
@ -1 +1 @@
|
||||
Subproject commit 0415ce82a070fed50a2333e5c16dd812e293680c
|
||||
Subproject commit cf3c143aa977994e543ae0893678a5f0628da02b
|
||||
@ -19,6 +19,7 @@ import (
|
||||
const cachefile = "data/danbooru/"
|
||||
|
||||
func init() { // 插件主体
|
||||
_ = os.RemoveAll(cachefile)
|
||||
err := os.MkdirAll(cachefile, 0755)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user