mirror of
https://github.com/SrIzan10/handler.git
synced 2026-05-01 10:45:17 +00:00
7545e33fa4b2c8ae0611ef751ee157a72e90c267
Sern
Sern is making easier to create & automate your discord bot with new version compatibility and full customization.
- A reincarnation of this old project
Installation
npm install sern-handler
yarn add sern-handler
Basic Usage
import { Client } from 'discord.js'
import { Intents } from 'discord.js'
import {prefix, token} from "../src/secrets.json"
import {Sern} from "sern-handler"
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MEMBERS
]
})
new Sern.Handler( {
client,
prefix,
commands : "dist/commands",
privateServers : [
{
test : true,
id: "server id"
}
],
init: async (handler : Sern.Handler) => {
/* an optional function to initialize anything else on bot startup */
},
});
client.login(token)
Links
Contribute
- Pull up on issues and tell me if there are bugs.
- Check issues.
- Any contributions are open to suggestion!
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%