Skip to content

Commit 5baf07c

Browse files
committed
chore(deps): bump @neoxr/wb from 6.0.0-rc.3 to 6.0.0-rc.4
fix: reposition anti-spam
1 parent 95abfb4 commit 5baf07c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

handler.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export default async (client, ctx) => {
9797
groupSet.member[m.sender].lastseen = now
9898
}
9999
}
100-
if (setting.antispam && isSpam && /(BANNED|NOTIFY|TEMPORARY)/.test(isSpam.state)) return client.reply(m.chat, Utils.texted('bold', `🚩 ${isSpam.msg}`), m)
101-
if (setting.antispam && isSpam && /HOLD/.test(isSpam.state)) return
100+
// if (setting.antispam && isSpam && /(BANNED|NOTIFY|TEMPORARY)/.test(isSpam.state)) return client.reply(m.chat, Utils.texted('bold', `🚩 ${isSpam.msg}`), m)
101+
// if (setting.antispam && isSpam && /HOLD/.test(isSpam.state)) return
102102
if (body && !setting.self && core.prefix != setting.onlyprefix && commands.includes(core.command) && !setting.multiprefix && !Config.evaluate_chars.includes(core.command)) return client.reply(m.chat, `🚩 *Incorrect prefix!*, this bot uses prefix : *[ ${setting.onlyprefix} ]*\n\n➠ ${setting.onlyprefix + core.command} ${text || ''}`, m)
103103
const matcher = Utils.matcher(command, commands).filter(v => v.accuracy >= 60)
104104
if (prefix && !commands.includes(command) && matcher.length > 0 && !setting.self) {
@@ -148,6 +148,11 @@ export default async (client, ctx) => {
148148
})
149149
continue
150150
}
151+
if (setting.antispam && isSpam && /(BANNED|NOTIFY|TEMPORARY)/.test(isSpam.state)) {
152+
client.reply(m.chat, Utils.texted('bold', `🚩 ${isSpam.msg}`), m)
153+
continue
154+
}
155+
if (setting.antispam && isSpam && /HOLD/.test(isSpam.state)) continue
151156
if (cmd.premium && !isPrem) {
152157
client.reply(m.chat, global.status.premium, m)
153158
continue

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"homepage": "https://github.com/neoxr/neoxr-bot#readme",
2727
"dependencies": {
2828
"@adiwajshing/keyed-db": "^0.2.4",
29-
"@neoxr/wb": "^6.0.0-rc.3",
29+
"@neoxr/wb": "^6.0.0-rc.4",
3030
"baileys": "^7.0.0-rc.3",
3131
"cfonts": "3.1.1",
3232
"html-entities": "^2.5.2",

0 commit comments

Comments
 (0)