fix: 修复bym发现的bymbug

This commit is contained in:
ikechan8370 2024-12-29 20:24:46 +08:00
parent 221cf4082d
commit 027ff17b13

View file

@ -68,7 +68,7 @@ export class bym extends plugin {
let card = e.sender.card || e.sender.nickname
let group = e.group_id
let prop = Math.floor(Math.random() * 100)
if (e.msg?.includes(Config.assistantLabel)) {
if (Config.assistantLabel && e.msg?.includes(Config.assistantLabel)) {
prop = prop / 100
}
if (e.msg?.endsWith('')) {