mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
✏️ 使用绝对路径
This commit is contained in:
parent
5c39449715
commit
16bef14df4
@ -3,6 +3,7 @@ package acgimage
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@ -13,12 +14,13 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
datapath = "data/acgimage/"
|
||||
cacheuri = "file:///" + datapath + "cache"
|
||||
lolipxy = "http://sayuri.fumiama.top:62002/dice?class=0&loli=true&r18=true"
|
||||
)
|
||||
|
||||
var (
|
||||
botpath, _ = os.Getwd()
|
||||
datapath = botpath + "/data/acgimage/"
|
||||
cacheuri = "file:///" + datapath + "cache"
|
||||
// r18有一定保护,一般不会发出图片
|
||||
randapi = "&loli=true&r18=true"
|
||||
msgof = make(map[int64]int64)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user