
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Modular και επεκτάσιμο Discord Bot Framework σε TypeScript με plugin system και service container για εύκολη δημιουργία, κατανομή και χρήση plugins.
Καλώς ήρθες στο GrotCore, ένα modular Discord bot framework σε TypeScript με plugin system. Ακολουθεί ένα γρήγορο tutorial για να ξεκινήσεις το πρώτο σου bot.
Στο project σου:
npm install grot-core
Στη συνέχεια, εγκατάστησε τα plugins που θέλεις, π.χ.:
npm install @grot/example-plugin
Κάθε plugin πρέπει να έχει εγκατεστημένο το core σαν peer dependency.
Δημιούργησε ένα αρχείο, π.χ. index.ts:
import { GrotCore } from "grot-core";
import { ExamplePlugin } from "@grot/example-plugin";
// Δημιουργία του core
const client = new GrotCore();
// Καταχώρηση plugin
client.registerPlugin(new ExamplePlugin());
// Εκκίνηση του bot
client.run();
registerPlugin() προσθέτει το plugin και μαζεύει τα required intents.run() δημιουργεί τον Discord client με όλα τα intents που χρειάζονται τα plugins και κάνει login.Ένα παράδειγμα plugin:
import { Plugin, GrotCore } from "grot-core";
export class ExamplePlugin implements Plugin {
name = "ExamplePlugin";
requiredIntents = [ "Guilds", "GuildMessages" ]; // π.χ. GatewayIntentBits
initialize(core: GrotCore) {
core.client.on("messageCreate", msg => {
if (msg.content === "!ping") {
msg.reply("Pong!");
}
});
}
}
name και optional requiredIntents.initialize(core) μέθοδος δίνει πρόσβαση στον Discord client και τις υπηρεσίες του core.DISCORD_TOKEN=your_token_here ts-node index.ts
Το bot τώρα:
dependencies) για να φορτώνεται με τη σωστή σειρά.@grot/core σαν devDependency για type checking και build.Αυτό το tutorial δείχνει πώς να φτιάξεις ένα πλήρως modular Discord bot με plugins που φορτώνονται δυναμικά και αυτοματοποιημένα.
FAQs
Modular και επεκτάσιμο Discord Bot Framework σε TypeScript με plugin system και service container για εύκολη δημιουργία, κατανομή και χρήση plugins.
We found that grot-core 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.