mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
fix(aichat): block chat at at
This commit is contained in:
parent
dc899f55fe
commit
71d029f7a0
@ -94,6 +94,9 @@ func init() {
|
||||
if !ctx.Event.IsToMe && rand.Intn(100) >= int(rate) {
|
||||
return
|
||||
}
|
||||
if ctx.Event.IsToMe {
|
||||
ctx.Block()
|
||||
}
|
||||
key := ""
|
||||
err := c.GetExtra(&key)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user