
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.
discord.js-router
Advanced tools
This is a Base Bot Router for Discord.js this allows for the Handling of Plugins, and a Trigger Easily.
Discord is a trademark or registered trademark of Hammer & Chisel, Inc. in the U.S. and/or other countries. "discord.js-router" is not operated by, sponsored by, or affiliated with Hammer & Chisel Inc. in any way.
$ npm install discord.js-router
{
plugins_dir: String, // Required
token: String, //Required unless you Launch it as a Shard of Discord.js
trigger: String, //Required
reactions: Boolean, // Optional
guilds: Boolean, // Optional
members: Boolean, // Optional
owners: Array of String // Required
}
var discord = require('discord.js-router');
discord.Start({
plugins_dir: "plugins", // This Directory must Exist
token: "YourBotTokenGoesHere", // Replace with String for the Discord Token.
trigger: "dev!",
owners: ["165372475562000385"]
});
If any Issues Please Submit them on the Github!
var options = {
plugins_dir: "plugins",
token: null, // Replace with String for the Discord Token.
trigger: "dev!",
owners: ["165372475562000385"]
};
var discord = require('discord.js-router');
discord.Start(options);
process.on('uncaughtException', function(err) {
console.log(`uncaughtException: ${err}`);
});
process.on('unhandledRejection', function(err) {
console.log(`unhandledRejection: ${err}`)
});
var discord = require('discord.js-router');
discord.on('cmd', function(cmd, args, data) {
if (cmd == "test") {
data.channel.send("This works");
} else if (cmd == "reload") {
discord.ReloadPlugins();
data.channel.send("Plugins are Reloaded!");
}
});
FAQs
This is a Base Bot Router for Discord.js this allows for the Handling of Plugins, and a Trigger Easily.
The npm package discord.js-router receives a total of 3 weekly downloads. As such, discord.js-router popularity was classified as not popular.
We found that discord.js-router 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
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.