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

optimize: remove useless self_id cfg

This commit is contained in:
源文雨
2026-01-17 17:40:18 +08:00
parent f289768c83
commit cd93ccfd6e
3 changed files with 2 additions and 5 deletions

View File

@@ -11,7 +11,6 @@ var sysp string
// Config stores mutable characteristics of the agent.
type Config struct {
ID int64 // ID QQ
Nickname string // Nickname 昵称
Sex string // Sex 性别
Chars string // Chars 个性
@@ -28,7 +27,7 @@ func (ag *Agent) system(role PermRole, iter int, grp int64) (string, error) {
typ = "私聊"
}
return fmt.Sprintf(
sysp, ag.cfg.ID, ag.cfg.Nickname, ag.cfg.Sex,
sysp, ag.cfg.Nickname, ag.cfg.Sex,
ag.cfg.Chars, tab, ag.memoryof(grp),
t.Format(time.RFC3339), t.Unix(), typ, iter,
), nil