
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
blwebhooks-beta
Advanced tools
Webhook Vote Reciever For Lists Such As top.gg, InfinityBotList and Many More To Come!
Need Any Help Setting It Up? Join Our Support Server.
It's intended to be used with discord.js v12.
BLWebhooks fully supports external and discord.js internal sharding, make sure to enable the Upcoming Sharded Client Module.
NPM (recommended)
npm i blwebhooks --save
Yarn
yarn add blwebhooks
top.gg
InfinityBotList
VoidBots
DiscordLabs
Botrix
Blist - Support Next Update
Import the lib via ES6 or commonJS modules
// ES6
import * as blwebhooks from "blwebhooks";
// or commonJS
const blwebhooks = require("blwebhooks");
With discord.js
const discord = require("discord.js");
const client = discord.Client();
const blwebhooks = require("blwebhooks");
// Attatch The Client and Port to the module.
// The client is it attaching to the client, 80 is the port it will run on
const bl = new blwebhooks.Client(client, 80);
Turn On Sharding Support
// This will enable the extended logging, this is mainly for debugging purposes
bl.shardedClient(true);
Turn On Extended Security
// This will enable bruteforce protection for module, once enabled
// it will start the protection also using more CPU.
bl.extraProtection(true);
Turn On Proxy Trust
// Enable this option is you use this behind a proxy like
// Heroku services etc
bl.proxyTrust(true);
Emit Test Vote Events
// Emit a test event to test your Voted Event
bl.testVote(userID, botID);
TopGG Vote Hooks:
// This will listen to votes from top.gg, the url is the end not
// including the / and auth is the webhook auth. You can enable and
// disable using true or false at the end
const topgg = bl.topggVoteHook(url, auth, true);
// This code will run after a new vote was received from top.gg
BLWEvent.on('topgg-voted', async function (UserID, botID, type) {
console.log(userID)
})
InfinityBotList Vote Hooks:
// This will listen to votes from InfinityBotList, the url is the end not
// including the / and auth is the webhook auth. You can enable and
// disable using true or false at the end
const InfinityBotList = bl.IBLVoteHook(url, auth, true);
// This code will run after a new vote was received from InfinityBotList
BLWEvent.on('IBL-voted', async function (userID, botID, type, timeStamp) {
console.log(userID)
})
VoidBots Vote Hooks:
// This will listen to votes from VoidBots, the url is the end not
// including the / and auth is the webhook auth. You can enable and
// disable using true or false at the end
const VoidBots = bl.VoidBotsVoteHook(url, auth, true);
// This code will run after a new vote was received from VoidBots
BLWEvent.on('VB-voted', async function (userID, botID) {
console.log(userID + " Voted For " + botID)
})
DiscordLabs Vote Hooks:
// This will listen to votes from DiscordLabs, the url is the end not
// including the / and auth is the webhook auth. You can enable and
// disable using true or false at the end
const DiscordLabs = bl.DiscordLabsVoteHook(url, auth, true);
// This code will run after a new vote was received from DiscordLabs
BLWEvent.on('DL-voted', async function (userID, botID, wasTest) {
console.log(`${userID} Voted For ${botID}. Was Test: ${wasTest}`)
})
Botrix Vote Hooks:
// This will listen to votes from Botrix, the url is the end not
// including the / and auth is the webhook auth. You can enable and
// disable using true or false at the end
const Botrix = bl.BotrixVoteHook(url, auth, true);
// This code will run after a new vote was received from Botrix
BLWEvent.on('BTR-voted', async function (userID, botID) {
console.log(`${userID} Voted For ${botID}.`)
})
Global Voted Event
// This will run after any vote has been received, use this if you don't want seprate events for each list
BLWEvent.on('vote', async function (userID, botID, List) {
console.log(`${userID} Voted For ${botID} on ${List}`)
})
Vote Expired Event
// This will run after the vote expires, this will be different for each list
BLWEvent.on('vote-expired', async function (userID, botID, List) {
console.log(userID)
})
Error Event
// This code will run in the event of a error, normally it will just console.log the error but you can add custom error events here
BLWEvent.on('error', async function (error) {
console.log(userID)
})
FAQs
Webhook Vote Reciever For Lists Such As top.gg, InfinityBotList and Many More To Come!
The npm package blwebhooks-beta receives a total of 0 weekly downloads. As such, blwebhooks-beta popularity was classified as not popular.
We found that blwebhooks-beta 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.