Skip to content

Commit 73b879a

Browse files
authored
fix hyaku & omikuji lazy & score (#815)
1 parent a5d2e3d commit 73b879a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugin/hyaku/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github.com/wdvxdr1123/ZeroBot/message"
2020
)
2121

22-
const bed = "https://gitea.seku.su/fumiama/OguraHyakuninIsshu/raw/branch/master"
22+
const bed = "https://gitea.seku.su/fumiama/OguraHyakuninIsshu/raw/branch/master/"
2323

2424
type line struct {
2525
番号, 歌人, 上の句, 下の句, 上の句ひらがな, 下の句ひらがな string

plugin/omikuji/sensou.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/FloatTech/zbputils/img/text"
1818
)
1919

20-
const bed = "https://gitea.seku.su/fumiama/senso-ji-omikuji/raw/branch/main"
20+
const bed = "https://gitea.seku.su/fumiama/senso-ji-omikuji/raw/branch/main/"
2121

2222
func init() { // 插件主体
2323
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{

plugin/score/sign_in.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ var (
5252
func init() {
5353
cachePath := engine.DataFolder() + "cache/"
5454
go func() {
55+
sdb = initialize(engine.DataFolder() + "score.db")
5556
ok := file.IsExist(cachePath)
5657
if !ok {
5758
err := os.MkdirAll(cachePath, 0777)
@@ -68,7 +69,6 @@ func init() {
6869
}
6970
}
7071
}
71-
sdb = initialize(engine.DataFolder() + "score.db")
7272
}()
7373
engine.OnRegex(`^签到\s?(\d*)$`).Limit(ctxext.LimitByUser).SetBlock(true).Handle(func(ctx *zero.Ctx) {
7474
// 选择key

0 commit comments

Comments
 (0)