1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-16 00:15:50 +08:00

update deps

This commit is contained in:
源文雨
2023-10-16 16:03:53 +09:00
parent 2e7ee9df5c
commit 5314405eeb
3 changed files with 57 additions and 162 deletions

View File

@@ -5,7 +5,6 @@ import (
"strconv"
"strings"
"time"
"unsafe"
"github.com/FloatTech/floatbox/process"
ctrl "github.com/FloatTech/zbpctrl"
@@ -19,7 +18,7 @@ func newctrl(service string, o *ctrl.Options[*Ctx]) Rule {
ctx.State["manager"] = c
gid, _ := strconv.ParseUint(ctx.Message.ChannelID, 10, 64)
uid, _ := strconv.ParseUint(ctx.Message.Author.ID, 10, 64)
return c.Handler(uintptr(unsafe.Pointer(ctx)), int64(gid), int64(uid))
return c.Handler(int64(gid), int64(uid))
}
}