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

init: first commit

This commit is contained in:
源文雨
2025-09-21 00:37:19 +08:00
commit 1ddb4dfdc5
12 changed files with 1293 additions and 0 deletions

17
prompt.go Normal file
View File

@@ -0,0 +1,17 @@
package goba
import (
_ "embed"
"fmt"
)
//go:embed README.md
var sysp string
func (ag *Agent) system(role PermRole) (string, error) {
tab, err := ag.perm.mdtable(role)
if err != nil {
return "", err
}
return fmt.Sprintf(sysp, ag.id, ag.nickname, ag.sex, ag.chars, tab), nil
}