mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
修改了两处错误的文案 (#481)
This commit is contained in:
parent
57404b2dcd
commit
68a9ecf995
@ -58,7 +58,7 @@ func init() {
|
|||||||
money := wallet.GetWalletOf(uid)
|
money := wallet.GetWalletOf(uid)
|
||||||
ctx.SendChain(message.At(uid), message.Text("你的钱包当前有", money, "ATRI币"))
|
ctx.SendChain(message.At(uid), message.Text("你的钱包当前有", money, "ATRI币"))
|
||||||
})
|
})
|
||||||
engine.OnFullMatch("2签到").Limit(ctxext.LimitByUser).SetBlock(true).
|
engine.OnFullMatch("签到").Limit(ctxext.LimitByUser).SetBlock(true).
|
||||||
Handle(func(ctx *zero.Ctx) {
|
Handle(func(ctx *zero.Ctx) {
|
||||||
uid := ctx.Event.UserID
|
uid := ctx.Event.UserID
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
@ -78,7 +78,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
case siUpdateTimeStr != today:
|
case siUpdateTimeStr != today:
|
||||||
// 如果是夸天签到就请数据
|
// 如果是跨天签到就清数据
|
||||||
err := sdb.InsertOrUpdateSignInCountByUID(uid, 0)
|
err := sdb.InsertOrUpdateSignInCountByUID(uid, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.SendChain(message.Text("ERROR: ", err))
|
ctx.SendChain(message.Text("ERROR: ", err))
|
||||||
@ -95,7 +95,7 @@ func init() {
|
|||||||
level := sdb.GetScoreByUID(uid).Score + 1
|
level := sdb.GetScoreByUID(uid).Score + 1
|
||||||
if level > SCOREMAX {
|
if level > SCOREMAX {
|
||||||
level = SCOREMAX
|
level = SCOREMAX
|
||||||
ctx.SendChain(message.At(uid), message.Text("你的登记已经达到上限"))
|
ctx.SendChain(message.At(uid), message.Text("你的等级已经达到上限"))
|
||||||
}
|
}
|
||||||
err = sdb.InsertOrUpdateScoreByUID(uid, level)
|
err = sdb.InsertOrUpdateScoreByUID(uid, level)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user