interface BotOptions

Options for the Bot constructor.

Properties

service?: string

The PDS to connect to.

Default: "https://bsky.social"

langs?: string[]

The default list of languages to attach to posts.

Default: ["en"]

emitEvents?: boolean

Whether to emit events.

Default: true

emitChatEvents?: boolean

Whether to emit chatMessage events (this is independent of emitEvents).

Default: false

rateLimitOptions?: RateLimitOptions

Options for the built-in rate limiter.

cacheOptions?: CacheOptions

Options for the request cache.

eventEmitterOptions?: BotEventEmitterOptions

Options for the event emitter.

chatEmitterOptions?: BotChatEmitterOptions

Options for the chat emitter. If this isn't set, the bot will use eventEmitterOptions.