feat: 伪人禁用群 (#758)

This commit is contained in:
misaka20002 2025-02-07 22:14:09 +08:00 committed by GitHub
parent 916e1082d7
commit dcc1a4ebd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 20 additions and 2 deletions

View file

@ -28,6 +28,12 @@ export class bym extends plugin {
if (!Config.enableBYM) {
return false
}
// 伪人禁用群
if (Config.bymDisableGroup?.includes(e.group_id?.toString())) {
return false
}
let sender = e.sender.user_id
let card = e.sender.card || e.sender.nickname
let group = e.group_id