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

feat: add more info in sysp

This commit is contained in:
源文雨
2026-01-03 21:44:26 +08:00
parent cb246240a3
commit 2def0c7108
5 changed files with 552 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ import (
)
var (
errEmptyMempry = errors.New("empty memory")
errEmptyMemory = errors.New("empty memory")
errMemoryHasReturn = errors.New("memory has \\r|\\n")
)
@@ -21,7 +21,7 @@ type MemoryStorage interface {
func extractMemory(r *zero.APIRequest) (string, error) {
txt, ok := r.Params["text"].(string)
if !ok || txt == "" {
return "", errEmptyMempry
return "", errEmptyMemory
}
for _, c := range txt {
if c == '\r' || c == '\n' {