
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
discord.js-message-replace
Advanced tools
This npm package provides a function to replace words in a message, specifically designed for use in Discord bots.
This npm package provides a function to replace words in a message, specifically designed for use in Discord bots.
You can install this package using npm:
npm install discord.js-message-replace
const { replaceWords, replacements } = require('discord.js-message-replace');
const channelsToMonitor = [
"", // channelID
"" // channelID
];
// you can add also too many channels.
client.on('messageCreate', async (message) => {
if (message.author.bot) return; // ignore bots
if (channelsToMonitor.includes(message.channel.id)) {
try {
const replacedContent = replaceWords(message.content, replacements); // replace message & copy it
message.delete() // delete member message
await message.channel.send(`${replacedContent}\n\n||@here||`); // send message after replace.
} catch (error) {
console.error('Error:', error);
}
}
});
This project is licensed under the MIT License.
FAQs
This npm package provides a function to replace words in a message, specifically designed for use in Discord bots.
We found that discord.js-message-replace 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.