Skip to content

Commit 2a84836

Browse files
committed
optimize(aichat): more replys
1 parent 549a8ce commit 2a84836

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/aichat/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ func init() {
165165
ctx.SendChain(message.Text("ERROR: ", err))
166166
return
167167
}
168+
ctx.SendChain(message.Text("成功"))
168169
})
169170
en.OnPrefix("设置AI聊天模型名", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
170171
args := strings.TrimSpace(ctx.State["args"].(string))
@@ -178,6 +179,7 @@ func init() {
178179
ctx.SendChain(message.Text("ERROR: ", err))
179180
return
180181
}
182+
ctx.SendChain(message.Text("成功"))
181183
})
182184
en.OnPrefix("设置AI聊天系统提示词", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
183185
args := strings.TrimSpace(ctx.State["args"].(string))
@@ -191,5 +193,6 @@ func init() {
191193
ctx.SendChain(message.Text("ERROR: ", err))
192194
return
193195
}
196+
ctx.SendChain(message.Text("成功"))
194197
})
195198
}

0 commit comments

Comments
 (0)