Skip to content

Commit

Permalink
🐛 fix: aireply 表情
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jan 14, 2022
1 parent 23393d9 commit 9cfa44d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/FloatTech/ZeroBot-Plugin
go 1.17

require (
github.com/FloatTech/AnimeAPI v1.2.2
github.com/FloatTech/AnimeAPI v1.2.3
github.com/FloatTech/zbputils v1.2.3-add9
github.com/antchfx/htmlquery v1.2.4
github.com/corona10/goimagehash v1.0.3
Expand Down
5 changes: 2 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
github.com/FloatTech/AnimeAPI v1.2.2 h1:Og3rLtsC/5k2elJ38/ux9wITJJDT7nUylsJOqmNpZ4E=
github.com/FloatTech/AnimeAPI v1.2.2/go.mod h1:kizVlcmBE2Pr2FGmC7H+xfyhyvUXTOibXaqBTQAnY3U=
github.com/FloatTech/AnimeAPI v1.2.3 h1:NywV8PxKun6oDcKndsrUKT8l7vHGnf0rm5sRrSZ7qSc=
github.com/FloatTech/AnimeAPI v1.2.3/go.mod h1:feTdgda0dckTeNl5VCXYlYEgN0wQbrca7TjIlZyph4o=
github.com/FloatTech/bot-manager v1.0.0/go.mod h1:8YYRJ16oroGHQGD2En0oVnmcKJkxR9O/jd5BPSfWfOQ=
github.com/FloatTech/zbputils v1.2.3-add8/go.mod h1:ZIuQP4tuhn7jiowEy+PALiHmr4zzPQBj4VdjEyd5/Es=
github.com/FloatTech/zbputils v1.2.3-add9 h1:lovWc7uvaqSww1TV8/BlGZNf5o2jBUgU4VIlXCusgrI=
github.com/FloatTech/zbputils v1.2.3-add9/go.mod h1:ZIuQP4tuhn7jiowEy+PALiHmr4zzPQBj4VdjEyd5/Es=
github.com/Mrs4s/MiraiGo v0.0.0-20211120033824-43b23f4e6fcb h1:Rkj28fqIwGx/EgBzRYtpmJRfH6wqVn7cNdc7aJ0QE4M=
Expand Down
5 changes: 3 additions & 2 deletions plugin_ai_reply/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ func init() { // 插件主体
// 回复
time.Sleep(time.Second * 1)
if ctx.Event.MessageType == "group" {
ctx.SendChain(message.Reply(ctx.Event.MessageID), reply)
reply = append(reply, message.Reply(ctx.Event.MessageID))
ctx.Send(reply)
return
}
ctx.SendChain(reply)
ctx.Send(reply)
})
engine.OnPrefix(`设置回复模式`).SetBlock(true).SetPriority(20).
Handle(func(ctx *zero.Ctx) {
Expand Down

0 comments on commit 9cfa44d

Please sign in to comment.