
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
discordblacklist
Advanced tools
A nodejs package that facilitates getting banned Discord users from DiscordBans
--Text Version--
$ npm install discordblacklist
Creating the object:
const Blacklist = require('discordblacklist'),
banlist = new Blacklist('token');
Get a token here.
The object will try to update its banlist on creation, however you can update the list manually at any time.
To update the ban list manually:
banlist.update();
This returns promise, and you can get the ban list from it with either the thenable or banlist.list
.
It is recommended you update your ban list every two hours
You can have the blacklist autoupdate the list like so:
const banlist = new Blacklist('token', true, 2*60);
To specify your own auto-update interval, create your object like so:
new Blacklist('token', true, minutes);
Clearing and resetting your auto-updater
To clear the autoupdater simply call banlist.stopUpdateTimer();
. To then set a new one do banlist.setUpdateTimer(minutes)
.
Looking up users.
banlist.lookup("id")
where id is the userid of the user you want to check. This returns a boolean depending on if the user is on the ban list.
Changing token
If for whatever reason you would like to switch tokens mid-execution, you can do that easily by calling
banlist.changeToken('newtoken');
//Create the object (which autorefreshes the banlist every 120 minutes)
const Blacklist = require('discordblacklist');
let banlist = new Blacklist('token', true, 120);
//Someone's id to test
const someID = '1234567890';
//Check if they are on the banlist
let isOnTheBanList = banlist.lookup(someID);
//Get the full list
console.log(banlist.list);
FAQs
The Featured Nodejs package that facilitates getting banned Discord users from DiscordBans
The npm package discordblacklist receives a total of 0 weekly downloads. As such, discordblacklist popularity was classified as not popular.
We found that discordblacklist 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.