class BotEventEmitter

extends EventEmitter

Constructor

constructor(options, bot)

Parameters

options: BotEventEmitterOptions

The options for the event emitter.

bot: Bot

The active Bot instance.

Properties

firehose?: Firehose

The firehose event stream.

emitting: boolean

Whether the bot is emitting events.

Methods

start()

Start emitting events.

stop()

Stop emitting events.

startFirehose()

Start receiving and processing firehose events.

startPolling()

Start polling the notifications endpoint.

poll()

Poll the notifications endpoint.