1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-08 03:55:12 +08:00

chore: update deps

This commit is contained in:
源文雨
2025-05-13 20:23:17 +09:00
parent a495e0027f
commit a99f02bda1
3 changed files with 94 additions and 62 deletions

View File

@@ -5,7 +5,6 @@ import (
"strconv"
"strings"
"time"
"unsafe"
"github.com/FloatTech/floatbox/process"
ctrl "github.com/FloatTech/zbpctrl"
@@ -18,7 +17,7 @@ func newctrl(service string, o *ctrl.Options[*Ctx]) Rule {
c := m.NewControl(service, o)
return func(ctx *Ctx) bool {
ctx.State["manager"] = c
return c.Handler(uintptr(unsafe.Pointer(ctx)), ctx.Message.Chat.ID, ctx.value.Elem().FieldByName("From").Elem().FieldByName("ID").Int())
return c.Handler(ctx.Message.Chat.ID, ctx.value.Elem().FieldByName("From").Elem().FieldByName("ID").Int())
}
}