
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.
djs-extended-collectors
Advanced tools
import * as DjsExtendedCollectors from "djs-extended-collectors"//on esm & ts.
/*
* on commonjs
* const DjsExtendedCollectors = require("djs-extended-collectors")
*/
const client = new Discord.Client({
intents: [Object.values(Intents)]//activate all intents
})
client.on("interactionCreate", async(interaction) => {
if(interaction.isCommand() && interaction.commandName === "yes-or-no"){
const collector = new DjsExtendedCollectors.ApplicationCommandCollector(client, interaction.channel, {
time: 5000,
idleTime: 10000,
collectFilter: (interaction) => {
return interaction.commandName === "yes" || interaction.commandName === "no"
}
})
collector.on("collect", (intr) => {
if(intr.commandName === "yes"){
intr.reply("you say yes :)")
}
})
}
})
client.login("your bot's token")
import { BaseCollector, BaseCollectorOptions, TextBasedChannel } from "djs-extended-collectors";
import { Client, Channel } from "discord.js"
interface MyCollectorEvents extends BaseCollectorEvents<[msg: Message]>{
event(msg: Message): any;
};
class MyCollector extends BaseCollector<string, [msg: Message], MyCollectorEvents>{
channel: TextBasedChannel
constructor(client: Client, channel: Channel, options: BaseCollectorOptions<[msg: Message]>){
super(client, options)
this.channel = channel
this.client.on("messageCreate", (msg) => this.handleCollect(msg))
}
handleCollect(msg: Message){
if(msg.channel.id !== this.channel.id) return;
this.collected.set(msg.id, [msg])
this.emit("collect", msg)
}
}
FAQs
Advanced Collector Module for Discord.js
The npm package djs-extended-collectors receives a total of 104 weekly downloads. As such, djs-extended-collectors popularity was classified as not popular.
We found that djs-extended-collectors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.