Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A Discord.js command framework.
To install dev version run: npm install https://github.com/IceeMC/FrozenCord
To install run npm install frozencord
To get support with anything reguarding this framework or d.js you can join the support server here
More coming soon.
Step 1: Download this repo on your pc/mac.
Step 2: Copy the commands
and inhibitors
directory located in the src
directory to the repo you want the bot in.
Step 3: Push the changes and run the commands below.
git add .
git commit -am "Add commands and inhibitors"
git push
const { FrozenClient } = require("frozencord");
const client = new FrozenClient({
prefix: "." // Set this to what ever you want the default is !.
withTyping: true // Set this to false if you don't want the bot to type when running commands.
ownerId: "" // A string of the owners id. Default is the id gotten from the client application.
readyMessage: (client) => `Ready as ${client.user.tag}` // The ready message for the client.
game: {
name: "cards of humanity",
type: "PLAYING"
} // Sets the game of the bot.
});
client.login("Token here");
const { Command } = require("frozencord");
class CommandName extends Command {
constructor(client) {
super(client);
this.name = "commandName"; // The name of the command
this.description = "A command that can do cool stuff."; // The description of the command.
this.aliases = []; // An array of strings *optional*
this.args = [{
name: "argument",
type: "string",
required: true, // by default this is false but set it to true if you wish
}]; // An array of ArgsObject's *optional*
this.botPerms = ["SEND_MESSAGES"]; // An array of permissions the bot should have when the command is ran *optional*.
this.userPerms = []; // An array of permissions the user should have when the command is ran *optional*.
this.guildOnly = true; // Set this to false if you want it to be ran in pms
this.ownerOnly = false; // Set this to true if you want the bot owner to be the one who can run this command.
this.disabled = false; // Set this to true if you want this command to be disabled.
}
// What the command does when its ran.
async run(message, [argument]) {
message.channel.send(argument);
}
}
module.exports = CommandName;
const { Inhibitor } = require("frozencord");
class InhibitorName extends Inhibitor {
constructor(client) {
super(client);
this.name = "inhibitorName"; // The name of this inhibitor.
this.description = "A inhibitor that can do cool things."; // The description of the inhibitor.
}
// What the inhibitor should do after a command is executed.
async run(message, command) {
console.log(`${message.author.tag} ran ${command.name}`);
}
}
module.exports = InhibitorName;
const { PaginatedMenu } = require("frozencord");
const menu = new PaginatedMenu(bot);
menu.setTitle("Example"); // Sets the title to Example.
menu.setColor(0x000000); // Sets the embed color to black.
menu.setDescription("Example paginated menu.");
menu.addPages([
{
title: "Page #1 title",
description: "Page #1 description"
},
{
title: "Page #2 title",
description: "Page #2 description"
},
{
title: "Page #3 title",
description: "Page #3 description"
},
{
title: "Page #4 title",
description: "Page #4 description"
}
]); // Adds 4 pages.
menu.addPage("Page #5 title", "Page #5 description"); // Adds a single page.
menu.start(); // Starts the menu.
FAQs
A Discord.js command framework.
We found that frozencord 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.