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

feat: mutable cfg & decode base64 img

This commit is contained in:
源文雨
2026-01-17 17:29:58 +08:00
parent f7d2527203
commit f289768c83
3 changed files with 58 additions and 34 deletions

View File

@@ -462,10 +462,9 @@ func (fakemem) Load(grp int64) []string {
}
func TestAgent_system(t *testing.T) {
ag := NewAgent(
12345, 10, 10, time.Minute, "testname", "testsex", "testchar",
"testd", &fakemem{}, false, false,
)
ag := NewAgent(&Config{
12345, "testname", "testsex", "testchar",
}, 10, 10, time.Minute, "testd", &fakemem{}, false, false)
p, err := ag.system(PermRoleAdmin, 1, 123)
if err != nil {
t.Fatal(err)