Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Adapter

Base Adapter class, extending to create different types of adapters.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Adapter(bot: "/home/circleci/repo/src/index"): Adapter
  • Create an adapter instance. Adapter modules should provide a .use method that accepts the bot, to provide to their adapter class constructor, returning the instance.

    Parameters

    • bot: "/home/circleci/repo/src/index"

      The current bBot instance

    Returns Adapter

Properties

bot

bot: "/home/circleci/repo/src/index"

The current bBot instance

name

name: string = "base-adapter"

Name of adapter, used for logs

Methods

Abstract shutdown

  • shutdown(): Promise<void>

Abstract start

  • start(): Promise<void>

Generated using TypeDoc