1
0
mirror of https://github.com/fumiama/go-onebot-agent.git synced 2026-06-28 08:00:24 +08:00

feat: add iter count

This commit is contained in:
源文雨
2026-01-06 22:17:37 +08:00
parent e707c78f4d
commit 1ac01594b6
4 changed files with 39 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ import (
//go:embed README.md
var sysp string
func (ag *Agent) system(role PermRole, grp int64) (string, error) {
func (ag *Agent) system(role PermRole, iter int, grp int64) (string, error) {
tab, err := ag.perm.mdtable(role)
if err != nil {
return "", err
@@ -22,6 +22,6 @@ func (ag *Agent) system(role PermRole, grp int64) (string, error) {
return fmt.Sprintf(
sysp, ag.id, ag.nickname, ag.sex,
ag.chars, tab, ag.memoryof(grp),
t.Format(time.RFC3339), t.Unix(), typ,
t.Format(time.RFC3339), t.Unix(), typ, iter,
), nil
}