Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

kyflx/discord-akairo

 
 

Repository files navigation

@kyflx-dev/akairo

This is basically just a fork of discord-akairo but It's in Typescript and it uses CommandContext for prompts and shit.

Caveats

Here are some caveats of using this package:

  • Said Context
    • You have to use a CommandContext class instead of a traditional discord.js Message class for commands and prompts.
    • pre and post type inhibitors use the CommandContext; whereas all uses the traditional Message class therefore typecasting ahaha... don't yell at us
  • Typescript
    • Typescript is fucking weird... that's all for this point lol.
    • This is real buggy because some errors wouldn't occur in JavaScript so we had to do some weird type casting and rearranging.
  • Made for Kyflx (Discord Bot)
    • Support will only be given to the developers and/or friends of the developers.
    • There might be features that might break your current bot or won't fit well with your ideas.

if you find an issue please join our discord server: https://discord.gg/BnQECNd

Customization

The only customizable class as of right now is CommandContext

import { Structures } from "@kyflx-dev/akairo";

Structures.extend(
  "CommandContext",
  (BaseContext) =>
    class KyflxContext extends BaseContext {
      public get lol() {
        return "lol";
      }
    }
);

declare module "@kyflx-dev/akairo" {
  interface CommandContext {
    lol: string;
  }
}

Installation

We do not provide support for this package as it was made for [Kyflx].

npm install @kyflx-dev/akairo

About

A Typescript fork of discord-akairo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%