1.0.16 • Published 4 years ago

@kyflx-dev/akairo v1.0.16

Weekly downloads
16
License
MIT
Repository
github
Last release
4 years ago

@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
1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago