Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
discord-moderator
Advanced tools
Welcome! This 'discord-moderator' module!
This is a simple module for adding moderation to Discord bot.
Please note: Node.js 14.0.0 or newer is required.
All types in brackets mean the type of what the method or event returns.
Install discord-moderator
$ npm install discord-moderator
'options.muteManager' - Property responsible for the status of the muting manager.
'options.warnManager' - Property responsible for the status of the warning manager.
'options.blacklistManager' - Property responsible for the status of the blacklist manager.
'options.muteConfig.tableName' - Property responsible for the name of the table for the mute manager.
'options.muteConfig.checkCountdown' - Property responsible for the checking interval of all mutes.
'options.warnConfig.tableName' - Property responsible for the name of the table for the warn manager.
'options.warnConfig.maxWarns' - Property responsible for the maximum number of warnings.
'options.warnConfig.punishment' - Property responsible for the method of punishing the user. Available: tempmute
, mute
, kick
, ban
.
'options.warnConfig.muteTime' - Property responsible for the mute time for the tempmute
punishment method.
'options.blacklistConfig.tableName' - Property responsible for the name of the table for the blacklist manager.
'options.blacklistConfig.punishment' - Property responsible for the method of punishing the user. Available: kick
, ban
.
const Discord = require('discord.js');
const client = new Discord.Client();
const Moderator = require('discord-moderator');
const moderator = new Moderator(client);
client.on('ready', () => {
console.log('Bot started!');
})
client.login('YOUR_BOT_TOKEN_HERE');
Click here to see JavaScript examples.
FAQs
A simple module for adding moderation to Discord bot.
We found that discord-moderator 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.