
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@progressive-victory/client
Advanced tools
@progressive-victory/client
is a general use Discord bot client that extends discord.js
Install of @progressive-victory/client:
npm install @progressive-victory/client
yarn add @progressive-victory/client
The client has a builting interation handler. and does not need the interactionCreate
event to be added. The Client Does NOT support refix commands
Example index.ts for a bot:
import { Client } from '@progressive-victory/client';
export const client = new Client({
receiveMessageComponents: true,
receiveModals: true,
receiveAutocomplete: true,
replyOnError: true,
splitCustomID: true,
splitCustomIDOn: '_',
useGuildCommands: false
});
async function start() {
await client.init({
eventPath: './events',
buttonPath: './interactions/buttons',
selectMenuPath: './interactions/select_menus',
modalPath: './interactions/modals',
commandPath: './commands/chat/builders',
contextMenuPath: './commands/context_menu'
});
await client.login(process.env.TOKEN);
await client.deploy();
};
start();
In a Dirctory path set in the eventPath
Example event for Discord client event ready
import { Events } from 'discord.js';
import { Event, logger } from '@progressive-victory/client';
export default new Event()
.setName(Events.ClientReady)
.setOnce(true)
.setExecute((client) => {
logger.info(`Ready! Logged in as ${client.user.username}`);
});
Command objects are a genaric and can be used for any object the following is the example of a button interaction. Button interactions should be placed in the Dirctory path set in the commandPath
or contextMenuPath
import { ChatInputCommand } from '@progressive-victory/client';
export default new ChatInputCommand()
.setBuilder(commandBuilder)
.setGlobal(true)
.setAutocomplete(autoCompletedFunction);
.setExecute(executeFunction);
Interaction objects are a genaric and can be used for any object the following is the example of a button interaction. Button interactions should be placed in the dirctory path set in the buttonPath
import { ButtonInteraction } from 'discord.js';
import { Interaction, logger } from '@progressive-victory/client';
export default new Interaction<ButtonInteraction>()
.setName(buttonCustomId)
.setExecute(async (interaction) => {
logger.info('button has been pressed');
});
FAQs
Modified Discord.js client for discord bots
The npm package @progressive-victory/client receives a total of 2 weekly downloads. As such, @progressive-victory/client popularity was classified as not popular.
We found that @progressive-victory/client 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.