
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
discord-antilinks
Advanced tools
npm install dsc-antilinks --save
const { Intents, Client } = require("discord.js")
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES]})
const antilink = require("discord-antilinks")
antilink(client, {
muteCount: 5,
kickCount: 6,
banCount: 7,
ignoredChannels: [], //Put the channel ID's in a array. Example ( ['ChannelId', 'ChannelId'] )
ignoredRoles: [], //Put the role ID's in a array. Example ( ['RoleId', 'RoleId'] )
ignoredUsers: [] //Put the user ID's in a array. Example ( ['UserId', 'UserId'] )
})
client.on("LinkSent", (message, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message: MessageObject ( Message is used to send a message to the channel. )
LinkSent: Event ( LinkSent is the event that triggers when a user sends a link. )
*/
})
client.on("countReached", (msg, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message: MessageObject ( Message is used to send a message to the channel. )
countReached: Event ( countReached is the event that triggers when a user hits the limit of the mute/kick/ban count. )
*/
})
client.login(token)
const { Intents, Client } = require("discord.js")
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES]})
const antilink = require("dsc-antilinks")
antilink(client, {
muteCount: 5,
kickCount: 6,
banCount: 7,
ignoredChannels: [], // Put the channel ID's in a array. Example ( ['ChannelId', 'ChannelId'] )
ignoredRoles: [], // Put the role ID's in a array. Example ( ['RoleId', 'RoleId'] )
ignoredUsers: [] // Put the user ID's in a array. Example ( ['UserId', 'UserId'] )
})
client.on("LinkSent", (message, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message : MessageObject ( Message is used to send a message to the channel. )
LinkSent : Event ( LinkSent is the event that triggers when a user sends a link. )
*/
message.channel.send(`<@${user.id}>, You can't send an link!`)
})
client.on("countReached", (msg, user) => {
/*
user : GuildMember ( User is added to kick or ban the user for example: user.kick() or user.ban() )
message : MessageObject ( Message is used to send a message to the channel. )
countReached : Event ( countReached is the event that triggers when a user hits the limit of the mute/kick/ban count. )
*/
if(type == 'Mute' || type == 'Kick' || type == 'Ban'){
var channel = message.guild.channels.cache.get("Channel id")
channel.send(`<@${user.id}>, Just hit the maximum number of links sent. ${type}`)
}
})
client.login(token)
Join the discord and send a message in #💻│discord-antilinks channel
FAQs
Simple antilink system for discord.js!
The npm package discord-antilinks receives a total of 0 weekly downloads. As such, discord-antilinks popularity was classified as not popular.
We found that discord-antilinks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.