mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 06:20:08 +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) {
|
if !ctx.Event.IsToMe && rand.Intn(100) >= int(rate) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if ctx.Event.IsToMe {
|
||||||
|
ctx.Block()
|
||||||
|
}
|
||||||
key := ""
|
key := ""
|
||||||
err := c.GetExtra(&key)
|
err := c.GetExtra(&key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user