
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.
command-cooldown
Advanced tools
a simple (discord bots anything really) cooldown for commands made using quick.db
a simple (discord bots anything really) cooldown for commands made using quick.db
See Changelog !
const cmdCD = require('command-cooldown');
client.on('message',async message => {
if (message.content == "ping") {
let cd = await cmdCD.checkCoolDown(message.author.id, "cmd-ping");
if (cd.res.spam) return "this user spams this command, i will not do any thing in order to not get rate limted";
if (!cd.res.ready) return message.reply(`Reamaining ${(cd.res.rem / 1000).toFixed(1)}s`);
message.reply(`My Ping is : ( ${client.ws.ping}Ms )`);
cmdCD.addCoolDown(message.author.id, 5000, "cmd-ping");
};
});
it will output remaning time in ms so you could do anything :)
{
ready : Boolean // whether the command is ready to user or not
rem : Timestapms //remaining time
cmd : String // cooldown's command name
spam : Boolean // if the user is spamming the cooldown
}
These are the keys in the options you can pass.
ID, type : string or number, the cooldown author id5000 , type : Timestamp, the cooldown duration in ms."cmd-name" , type : String, the cooldown command name this helps to add multi cooldowns *NOT REQUIERD*.cmdCD.addCoolDown(ID, 5000, "cmd-name");
^^ ^^^^
* ^ = required
FAQs
a simple (discord bots anything really) cooldown for commands made using quick.db
The npm package command-cooldown receives a total of 3 weekly downloads. As such, command-cooldown popularity was classified as not popular.
We found that command-cooldown 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.