
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
discord-raidmod
Advanced tools
Simple, beginner friendly and easy-to-use discord.js moderation framework
Simple, beginner friendly and easy-to-use discord.js moderation framework
NOTE: This library does not take any moderation actions on its own, rather it emits different type of events which needs to be handled by the user.
import { Client, Intents } from "discord.js";
import { DiscordRaidMod, createConfig } from "discord-raidmod";
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_BANS
]
});
const raidMod = new DiscordRaidMod(client, createConfig({
// ignore messages from mods (bots are ignored by default)
filterMessages: (message) => !message.member.permissions.has("MANAGE_MESSAGES"),
// other than that, default config is good enough to handle spams
// but you can update them as needed ;)
}));
// when spam event is triggered,
// we get array of messages that were flagged as spam messages
// and spam type
raidMod.on("spam", async (messages, spamType) => {
const spammers = [...new Set(messages.map(m => m.author.id))];
for (const spammer of spammers) {
if (!messages[0].guild.members.cache.get(spammer)?.bannable) continue;
await messages[0].guild.bans.create(spammer, {
days: 1,
reason: "Spam detection"
})
.then((banInfo) => {
console.log(`[${spamType}] Banned ${banInfo.user?.tag ?? banInfo.tag ?? banInfo} for spam`);
})
.catch(() => {});
}
});
// when spamMentions event is triggered,
// we get the message that triggered this event,
// and collection of member mentions
raidMod.on("spamMentions", async (message, mentions) => {
if (!message.member.bannable) return;
await message.guild.bans.create(message.member, {
days: 1,
reason: "Mention spam"
})
.then((banInfo) => {
console.log(`Banned ${banInfo.user?.tag ?? banInfo.tag ?? banInfo} for spamming ${mentions.size} mentions`);
})
.catch(() => {});
});
await client.login("TOKEN");
FAQs
Simple, beginner friendly and easy-to-use discord.js moderation framework
We found that discord-raidmod demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.