Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandPool<BotRef>

Type parameters

  • BotRef

Hierarchy

  • CommandPool

Index

Constructors

constructor

Properties

commands

commands: CommandPoolEntries<BotRef>

Private markers

markers: string[]

Methods

Private buildArgs

  • buildArgs(command: ICommand<BotRef>, words: string[]): object
  • Parameters

    • command: ICommand<BotRef>
    • words: string[]

    Returns object

Private convertArg

  • convertArg(value: string, type: ArgType): boolean | string | number

register

  • register(command: ICommand<BotRef>): void

Private removeMarker

  • removeMarker(message: string): string

run

  • run(command: ICommand<BotRef>, words: string[], ref: BotRef): void
  • Parameters

    • command: ICommand<BotRef>
    • words: string[]
    • ref: BotRef

    Returns void

runFromMessage

  • runFromMessage(message: string, ref: BotRef): void

Generated using TypeDoc