Skip to content

Commit

Permalink
fix hyaku & omikuji lazy & score (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang-Red authored Nov 8, 2023
1 parent a5d2e3d commit 73b879a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/hyaku/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/wdvxdr1123/ZeroBot/message"
)

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

type line struct {
番号, 歌人, 上の句, 下の句, 上の句ひらがな, 下の句ひらがな string
Expand Down
2 changes: 1 addition & 1 deletion plugin/omikuji/sensou.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/FloatTech/zbputils/img/text"
)

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

func init() { // 插件主体
engine := control.AutoRegister(&ctrl.Options[*zero.Ctx]{
Expand Down
2 changes: 1 addition & 1 deletion plugin/score/sign_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var (
func init() {
cachePath := engine.DataFolder() + "cache/"
go func() {
sdb = initialize(engine.DataFolder() + "score.db")
ok := file.IsExist(cachePath)
if !ok {
err := os.MkdirAll(cachePath, 0777)
Expand All @@ -68,7 +69,6 @@ func init() {
}
}
}
sdb = initialize(engine.DataFolder() + "score.db")
}()
engine.OnRegex(`^签到\s?(\d*)$`).Limit(ctxext.LimitByUser).SetBlock(true).Handle(func(ctx *zero.Ctx) {
// 选择key
Expand Down

0 comments on commit 73b879a

Please sign in to comment.