
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A powerful commands framework for discord.js
npm install erine
const { ErineClient } = require("erine");
const { GatewayIntentBits } = require("discord.js");
const client = new ErineClient({
intents: [
GatewayIntentBits.Guilds
],
prefix: "!"
});
client.login("TOKEN");
client.load_commands("./path/to/commands");
client.load_events("./path/to/events");
const { HybridBuilder, ParamsBuilder } = require("erine");
const body = {
data: new HybridBuilder()
.setName('ping')
.setAliases('pong')
.setDescription('This works with ![ping|pong] and /ping'),
params: new ParamsBuilder()
.addMember({ name: 'myMember', description: 'The member', required: false }),
async code(ctx) {
await ctx.send({ content: `Pong! ${ctx.author.username}`, ephemeral: true })
}
}
module.exports = { body } // important to be named 'body'
const { HybridGroup, ParamsBuilder, HybridBuilder } = require("erine");
const body = new HybridGroup()
.setName('parent')
.setDescription('This is the parent of all')
.addCommand({
data: new HybridBuilder()
.setName('child-one')
.setDescription('This can be used as: !parent child-one or /parent child-one'),
async code(ctx) {
await ctx.send(`My parent is: ${ctx.parent.name}`)
}
})
FAQs
A powerful discord.js-based command framework to create Discord bots with ease.
The npm package erine receives a total of 5 weekly downloads. As such, erine popularity was classified as not popular.
We found that erine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.