From 16bef14df49ca2bc19b7a25a5da9f1aeba1fa76b Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 6 Aug 2021 23:50:58 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_acgimage/classify.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugin_acgimage/classify.go b/plugin_acgimage/classify.go index ae1902dd..a86fdbf3 100644 --- a/plugin_acgimage/classify.go +++ b/plugin_acgimage/classify.go @@ -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" + 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)