Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
goated.js
Advanced tools
Readme
a minimal discord API wrapper
When making discord-trolling and using discord.js, I found that their environments quickly became too bloated and complicated. That's why I'm making goated, to simplify the ecosystem even more.
To use goated.js, start with the following code:
const { Client, Intents } = require("goated.js");
const client = new Client({
intents: [Intents.Guilds], // bot intents
commandsPath: `${__dirname}/commands` // path to folder with commands in it
});
client.env("./.env"); // login and read TOKEN and all other environment variables from .env
client.createCommand([
{
name: "test-command",
description: "A test command",
options: [
{
name: "test-option",
description: "A test option",
required: true,
type: Client.types.STRING,
}
],
}
], {
id: process.env.APPLICATION_ID, // the bot ID in
token: process.env.TOKEN, // the bot token
guildId: process.env.GUILD_ID, // optional for registering guild-specific commands
});
Then, create a file with the same command name in the commands directory:
module.exports.run = (interaction) => { // the interaction parameter is from the discord.js library
const option = interaction.options.getString("test-option");
interaction.reply(`You provided the option: ${option}`)';
};
FAQs
a minimal discord API wrapper
The npm package goated.js receives a total of 17 weekly downloads. As such, goated.js popularity was classified as not popular.
We found that goated.js demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.