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

feat: add terminus

This commit is contained in:
源文雨
2025-09-26 00:32:39 +08:00
parent 4a13d48870
commit 0ede409f61
3 changed files with 16 additions and 1 deletions

View File

@@ -65,6 +65,11 @@ func (ag *Agent) AddResponse(grp int64, resp *APIResponse) {
ag.log.Add(grp, resp, false)
}
// AddTerminus 添加会话终止符
func (ag *Agent) AddTerminus(grp int64) {
ag.log.Add(grp, Terminus{}, true)
}
// CanViewImage will be true if SetViewImageAPI is called
func (ag *Agent) CanViewImage() bool {
return ag.hasimageapi