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.

jetstream?: Jetstream<"app.bsky.feed.like" | "app.bsky.feed.post" | "app.bsky.feed.repost" | "app.bsky.graph.follow", "app.bsky.feed.like" | "app.bsky.feed.post" | "app.bsky.feed.repost" | "app.bsky.graph.follow">

The jetstream 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.

startJetstream()

Start receiving and processing jetstream events.

startPolling()

Start polling the notifications endpoint.

poll()

Poll the notifications endpoint.