Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BitController

Hierarchy

  • BitController

Index

Properties

Methods

Properties

current

current: object

Keep all created bits, for getting by their ID as key.

Type declaration

  • [id: string]: Bit

Methods

create

  • create(atts: IBit): Bit

run

  • run(id: string, b: State): Promise<void> | undefined
  • Execute a bit using its ID, providing current bot state.

    Parameters

    Returns Promise<void> | undefined

setup

  • setup(atts: IBit): string
  • Add new bit to collection, returning its ID.

    Parameters

    Returns string

Generated using TypeDoc