mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 05:30:07 +08:00
🎨 改进代码样式 (#638)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
587d3967ef
commit
1a0575af64
@ -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) {
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user