🎨 改进代码样式 (#638)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2023-03-25 11:07:00 +08:00 committed by GitHub
parent 587d3967ef
commit 1a0575af64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -9,13 +9,14 @@ import (
"strconv"
"time"
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
"github.com/FloatTech/floatbox/file"
"github.com/FloatTech/gg"
"github.com/FloatTech/imgfactory"
"github.com/FloatTech/zbputils/control"
"github.com/FloatTech/zbputils/img/text"
"github.com/disintegration/imaging"
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
)
func drawScore16(a *scdata) (image.Image, error) {

View File

@ -128,8 +128,8 @@ type scdata struct {
picfile string
uid int64
nickname string
inc int //增加币
score int //钱包
inc int // 增加币
score int // 钱包
level int
rank int
}

View File

@ -67,7 +67,7 @@ func init() {
sdb = initialize(engine.DataFolder() + "score.db")
}()
engine.OnRegex(`^签到\s?(\d*)$`, initDef).Limit(ctxext.LimitByUser).SetBlock(true).Handle(func(ctx *zero.Ctx) {
//选择key
// 选择key
var key string
gid := ctx.Event.GroupID
if gid < 0 {