Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
invite-tracker-discord
Advanced tools
invite-tracker-discord is a module to track discord invites
discord inviter tracker has a database which created locally and it used to track the invite activity of discord user.
discord inviter tracker requires Node.js v16+ to run.
npm i invite-tracker-discord
for starting you will need to require the module
let InviteTrack = require('invite-tracker-discord')
then you will need to send the client for the module
InviteTrack(client)
/inviteboard discord command will reply the invites leaderboard
examples:
require("dotenv").config();
const InviteTrack = require('invite-tracker-discord')
const Database = require("easy-json-database");
const db = new Database("./db.json")
let discord = require('discord.js')
let client = new discord.Client({ intents: [Object.values(discord.Intents.FLAGS).reduce((acc, p) => acc | p, 0)], partials: ["REACTION"] })
InviteTrack(client);
client.on('messageCreate', async (message) => {
let invitesCount = db.get('invitesCount');
var sorted = {}
if (message.content === '/inviteboard') {
if (Object.keys(invitesCount).length > 1) {
Object.keys(invitesCount).sort((a, b) => invitesCount[b] - invitesCount[a]).map(item => sorted[item] = invitesCount[item]);
let leaderboard = "";
Object.keys(sorted).forEach(async (inviteId, index) => {
leaderboard += `*${index + 1}. <@${inviteId}> with invites **${sorted[inviteId]}***\n`
})
message.channel.send(leaderboard);
}
else {
let leaderboard = "";
Object.keys(invitesCount).forEach(async (inviteId, index) => {
leaderboard += `*${index + 1}. <@${inviteId}> with invites **${invitesCount[inviteId]}***\n`
})
message.channel.send(leaderboard);
}
}
});
client.login(token);
FAQs
to tracking discord invites
The npm package invite-tracker-discord receives a total of 0 weekly downloads. As such, invite-tracker-discord popularity was classified as not popular.
We found that invite-tracker-discord 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.