mirror of
https://github.com/SrIzan10/handler.git
synced 2026-05-01 10:45:17 +00:00
d62be87c9aa98039384dd94342e141edfef8af71
SernHandler
A customizable, batteries-included, powerful discord.js framework to automate and streamline your bot development.
Installation
npm install @sern/handler
yarn add @sern/handler
pnpm add @sern/handler
Basic Usage
index.js (CommonJS)
const { Client, GatewayIntentBits } = require('discord.js');
const { Sern } = require('@sern/handler');
const { defaultPrefix, token } = require('./config.json');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages
]
});
Sern.init({
client,
defaultPrefix,
commands : 'src/commands',
});
client.login(token);
ping.js (CommonJS)
const { Sern, CommandType } = require('@sern/handler');
exports.default = {
description: 'A ping pong command',
type: CommandType.Slash,
execute(ctx) {
ctx.reply('pong!');
}
};
See our templates for TypeScript examples and more
CLI
It is highly encouraged to use the command line interface for your project. Don't forget to view it.
Links
Contribute
- Read our contribution guidelines carefully
- Pull up on issues and report bugs
- All kinds of contributions are welcomed.
Roadmap
You can check our roadmap to see what's going to be added or patched in the future.
Description
A customizable, batteries-included, powerful discord.js framework to streamline bot development.
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-05-01T16:06:47.653Z
Languages
TypeScript
97.9%
JavaScript
2.1%