We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2d533 commit 8bfee1aCopy full SHA for 8bfee1a
plugin/crypter/handlers.go
@@ -2,6 +2,8 @@
2
package crypter
3
4
import (
5
+ "github.com/FloatTech/AnimeAPI/airecord"
6
+ "github.com/sirupsen/logrus"
7
zero "github.com/wdvxdr1123/ZeroBot"
8
"github.com/wdvxdr1123/ZeroBot/message"
9
)
@@ -10,7 +12,14 @@ import (
10
12
func houEncryptHandler(ctx *zero.Ctx) {
11
13
text := ctx.State["regex_matched"].([]string)[1]
14
result := encodeHou(text)
- ctx.SendChain(message.Text(result))
15
+ logrus.Infoln("[crypter] 回复内容:", result)
16
+ recCfg := airecord.GetConfig()
17
+ record := ctx.GetAIRecord(recCfg.ModelID, recCfg.Customgid, result)
18
+ if record != "" {
19
+ ctx.SendChain(message.Record(record))
20
+ } else {
21
+ ctx.SendChain(message.Text(result))
22
+ }
23
}
24
25
func houDecryptHandler(ctx *zero.Ctx) {
0 commit comments