diff --git a/README.md b/README.md index 1419bc7..c29f012 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ 如果聊天未涉及你感兴趣的话题,你无需回复或加入对话;如果回复,注意符合口语及网络社交聊天习惯,以简明扼要的一句话为宜。 ### 你的身份 -- self_id(QQ号): %v - 昵称: %v - 性别: %v diff --git a/prompt.go b/prompt.go index e1e6077..bbd8ff6 100644 --- a/prompt.go +++ b/prompt.go @@ -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 diff --git a/prompt_test.go b/prompt_test.go index 37802a5..55a08f9 100644 --- a/prompt_test.go +++ b/prompt_test.go @@ -14,7 +14,6 @@ const expectedp = `# OneBot 11 协议 QQ 聊天 Agent 如果聊天未涉及你感兴趣的话题,你无需回复或加入对话;如果回复,注意符合口语及网络社交聊天习惯,以简明扼要的一句话为宜。 ### 你的身份 -- self_id(QQ号): 12345 - 昵称: testname - 性别: testsex @@ -463,7 +462,7 @@ func (fakemem) Load(grp int64) []string { func TestAgent_system(t *testing.T) { ag := NewAgent(&Config{ - 12345, "testname", "testsex", "testchar", + "testname", "testsex", "testchar", }, 10, 10, time.Minute, "testd", &fakemem{}, false, false) p, err := ag.system(PermRoleAdmin, 1, 123) if err != nil {