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:
17
prompt.go
Normal file
17
prompt.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user