mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +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"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
|
|
||||||
"github.com/FloatTech/floatbox/file"
|
"github.com/FloatTech/floatbox/file"
|
||||||
"github.com/FloatTech/gg"
|
"github.com/FloatTech/gg"
|
||||||
"github.com/FloatTech/imgfactory"
|
"github.com/FloatTech/imgfactory"
|
||||||
"github.com/FloatTech/zbputils/control"
|
"github.com/FloatTech/zbputils/control"
|
||||||
"github.com/FloatTech/zbputils/img/text"
|
"github.com/FloatTech/zbputils/img/text"
|
||||||
"github.com/disintegration/imaging"
|
"github.com/disintegration/imaging"
|
||||||
|
|
||||||
|
"github.com/FloatTech/ZeroBot-Plugin/kanban/banner"
|
||||||
)
|
)
|
||||||
|
|
||||||
func drawScore16(a *scdata) (image.Image, error) {
|
func drawScore16(a *scdata) (image.Image, error) {
|
||||||
|
|||||||
@ -128,8 +128,8 @@ type scdata struct {
|
|||||||
picfile string
|
picfile string
|
||||||
uid int64
|
uid int64
|
||||||
nickname string
|
nickname string
|
||||||
inc int //增加币
|
inc int // 增加币
|
||||||
score int //钱包
|
score int // 钱包
|
||||||
level int
|
level int
|
||||||
rank int
|
rank int
|
||||||
}
|
}
|
||||||
|
|||||||
@ -67,7 +67,7 @@ func init() {
|
|||||||
sdb = initialize(engine.DataFolder() + "score.db")
|
sdb = initialize(engine.DataFolder() + "score.db")
|
||||||
}()
|
}()
|
||||||
engine.OnRegex(`^签到\s?(\d*)$`, initDef).Limit(ctxext.LimitByUser).SetBlock(true).Handle(func(ctx *zero.Ctx) {
|
engine.OnRegex(`^签到\s?(\d*)$`, initDef).Limit(ctxext.LimitByUser).SetBlock(true).Handle(func(ctx *zero.Ctx) {
|
||||||
//选择key
|
// 选择key
|
||||||
var key string
|
var key string
|
||||||
gid := ctx.Event.GroupID
|
gid := ctx.Event.GroupID
|
||||||
if gid < 0 {
|
if gid < 0 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user