@aero/klasa

Fork of skyra-project/klasa with user and client gateways.

Usage no npm install needed!

<script type="module">
  import aeroKlasa from 'https://cdn.skypack.dev/@aero/klasa';
</script>

README

klasa

Let's stop reinventing the wheel, and start coding the bots of our dreams!

Klasa is an OOP discord.js bot framework which aims to be the most feature complete, while feeling like a consistent extension of discord.js.

Originally based on Komada, Klasa has become a ship of Theseus, keeping many similarities with the former framework but with many enhancements and extra features.

What's with the name?

Following suit from Komada (the Croatian word for "pieces"), Klasa is the Croatian word for "class". By the same token, Klasa is modular, and each module is a piece of a puzzle you use to build your own bot. And you can replace, enhance, reload or remove these pieces; the difference is that Klasa uses classes.

What is different in this fork

  • ExtendedHelp has been redesigned to be forward compatible with the change to i18next that will be needed when Skyra migrated to Sapphire Framework
  • RichDisplay#addPage typings have been changed to take (template: MessageEmbed) => MessageEmbed to save a lot of unnecessary typing effort when building RichDisplay's
  • Command#extendedHelp and CommandOptions#extendedHelp now take unknown as type to facilitate better i18next transition
  • Other QoL changes specific for Skyra

This fork should not be used in your own projects. This fork is exclusively for Skyra's use!!

Features

  • Abstracted database handler, works with any database, or atomically written JSON (by default).
  • Easy and powerful command system, featuring usage string, dependent arguments, and custom types.
  • Easy and powerful to configure the permission levels system.
  • Easy to create your own pieces and structures!
  • Editable commands with quoted string support and custom parameter delimiter.
  • Flag arguments.
  • Full OOP and hot-reloadable pieces.
  • Full personalizable configuration system that can serve for much more than just guilds.
  • Incredibly fast loading (~100ms) with deep loading for commands.
  • Per-command cooldowns with bucket support and easy to configure.
  • Many different pieces and standalone utils to help you build the bot of your dreams!
    • Commands: The most basic piece, they run when somebody types the prefix and the command name or any of its aliases.
    • Events: Hot-reloadable structures for events, with internal error handling.
    • Extendables: Easily extend Klasa or discord.js.
    • Finalizers: Structures that run after successful command run.
    • Inhibitors: Middleware that can stop a command from running (permissions...).
    • Languages: Easy internationalization support for your bot!
    • Monitors: Watch every single message your bot receives! They're perfect for no-mention-spam, swear word filter, and so on!
    • Providers: You can have one, or more, they're interfaces for the settings system and ensures the data is written correctly!
    • Serializers: These allow you to change how the Settings system reads, writes, and displays information.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


bdistin

πŸ’»

Antonio RomΓ‘n

πŸ’»

Vlad Frangu

πŸ’»

Jeroen Claassens

πŸ’»

Jacz

πŸ’»

Tyler Davis

πŸ’»

Pandraghon

πŸ’»

Gryffon Bellish

πŸ’»

Hutch

πŸ’»

Skillz4Killz

πŸ’»

GC

πŸ’»

Yukine

πŸ’»

HellPie

πŸ’»

Shayne Hartford

πŸ’»

pedall

πŸ’»

Dwigoric

πŸ’»

Fayne Aldan

πŸ’»

Kenan Yildirim

πŸ’»

TheFloppyBanana

πŸ’»

Uriel

πŸ’»

BannerBomb

πŸ’»

Charalampos Fanoulis

πŸ’»

Angelo

πŸ’»

Damian

πŸ’»

Deniz Can

πŸ’»

Soumil07

πŸ’»

Excigma

πŸ’»

John Burke

πŸ’»

Johnson Chen

πŸ’»

Jordan Jones

πŸ’»

Kizuru

πŸ’»

Kovacs Alex

πŸ’»

Michael Cumbers

πŸ’»

OGNovuh

πŸ’»

Piyush Bhangale

πŸ’»

Nejc Drobnic

πŸ’»

SZephyr

πŸ’»

FOG_Yamato

πŸ’»

SuperOP535

πŸ’»

Zach

πŸ’»

kshxtij

πŸ’»

Andrew Valleteau

πŸ’»

hellbound

πŸ’»

void

πŸ’»

Faith

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!