Skip to content

Commit 71d029f

Browse files
committed
fix(aichat): block chat at at
1 parent dc899f5 commit 71d029f

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
@@ -94,6 +94,9 @@ func init() {
9494
if !ctx.Event.IsToMe && rand.Intn(100) >= int(rate) {
9595
return
9696
}
97+
if ctx.Event.IsToMe {
98+
ctx.Block()
99+
}
97100
key := ""
98101
err := c.GetExtra(&key)
99102
if err != nil {

0 commit comments

Comments
 (0)