Skip to content

sern-handler/handler

Repository files navigation

Handlers. Redefined.

A complete, customizable, typesafe, & reactive framework for discord bots

NPM version NPM downloads License MIT docs.rs Lines of code

Why?

  • For you. A framework that's tailored to your exact needs.
  • Lightweight. Does a lot while being small.
  • Latest features. Support for discord.js v14 and all of its interactions.
  • Start quickly. Plug and play or customize to your liking.
  • works with bun and node out the box!
  • Use it with TypeScript or JavaScript. CommonJS and ESM supported.
  • Active and growing community, always here to help. Join us
  • Unleash its full potential with a powerful CLI and awesome plugins.

πŸ“œ Installation

Start here!!

πŸ‘Ά Basic Usage

ping.ts
export default commandModule({
  type: CommandType.Slash,
  //Installed plugin to publish to discord api and allow access to owners only.
  plugins: [publish(), ownerOnly()],
  description: 'A ping pong command',
  execute(ctx) {
    ctx.reply('Hello owner of the bot');
  }
});

πŸ€– Bots Using sern

πŸ’» 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.