
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
GoodBot is a simple framework for building discord bots in JS.
Use the package manager npm to install goodbot.
npm install goodbot
const { Client } = require("goodbot"); // importing goodbot
const path = require("path"); // importing path
const client = new Client({
prefix: "!", // the bot's prefix
ownerID: "465905397874688000", // your discord user id
inviteLink: "https://discord.gg/botinvite", // the invite for your bot
commandsFolder: path.join(__dirname, "commands"), // the commands folder, You need to make It
});
client.start("token"); // to start the bot with the token
// to create commands You first need to make Categories
client.addCommandsCategory("name", "description"); // to create 1 category
// to create more than 1 categories at once
client.addCommandsCategories([
["moderation", "moderation commands"],
["music", "music commands"],
]);
// You need to create a folder inside the commandsFolder for each category
After that you need to make a file for the command inside one of the categories folders. Then to make the command write this in the command's file:
module.exports = {
name: "ping", // command name
description: "ping command description", // command description
argsType: 'multiple', // not required
// argsType set the 'args' parameter options,
// 'single' => all the args in a single string
// 'multiple' => all the args in a string array
run: (client, message, args) => {
message.channel.send("Pong!");
// ...
},
};
To use the default help command:
client.createDefaultHelp();
How to get a commandCategory:
client.commandsCategories.get('moderation');
How to get a command:
client.commandsCategories.get('moderation').get('ban');
FAQs
an easy to use package for building discord bots
We found that goodbot 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.