Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandManager

Hierarchy

  • CommandManager

Index

Constructors

constructor

Properties

Static CONFIG_KEY_COMMAND

CONFIG_KEY_COMMAND: "command" = "command"

Static CONFIG_KEY_PREFIX

CONFIG_KEY_PREFIX: "prefix" = "prefix"

Static DEFAULT_PREFIX

DEFAULT_PREFIX: "#" = "#"

Methods

getCommandNameForModuleInContext

  • getCommandNameForModuleInContext(module: CommandModule, ctx: Message): string

getCommandToCommandModuleMap

getCommandsByModuleAndChatThreadId

  • getCommandsByModuleAndChatThreadId(module: CommandModule, chatThreadId: FacebookId): string | string[]

populate

  • populate(): void

Static getPrefixOfContext

  • getPrefixOfContext(cfg: ContextualizableModuleConfiguration, ctx: Message): any

Static isCommandEnabledInContext

  • isCommandEnabledInContext(commandModule: CommandModule, msg: Message): boolean

Static isCommandHiddenInContext

  • isCommandHiddenInContext(commandModule: CommandModule, ctx: Message): boolean

Static makeHelpText

  • makeHelpText(prefix: string, commandName: string, commandModule: CommandModule): string

Generated using TypeDoc