Files
simplex-chat/packages/simplex-chat-nodejs/docs/bot.Interface.BotConfig.md
EvgenyandEvgeny @ SimpleX Chat 46b2cf9f85 nodejs: add tests to library (#7694)
* nodejs: add tests to library

* new tests

* remove message splitting

* fix race

* docs

* replace extract-zip with yauzl that it wraps (high severity issue)

* fix ci tests

* skip server tests on macos and win unless SMP_SERVER is set

* fix win test

* fix win test

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
2026-10-19 19:49:44 +01:00

1.3 KiB

simplex-chat


simplex-chat / bot / BotConfig

Interface: BotConfig

Defined in: src/bot.ts:36

Properties

dbOpts

dbOpts: BotDbOpts

Defined in: src/bot.ts:39


events?

optional events?: EventSubscribers

Defined in: src/bot.ts:46


onCommands?

optional onCommands?: object

Defined in: src/bot.ts:43

Index Signature

[key: string]: ((chatItem, command, chat) => void | Promise<void>) | undefined


onMessage?

optional onMessage?: (chatItem, content, chat) => void | Promise<void>

Defined in: src/bot.ts:41

Parameters

chatItem

AChatItem

content

MsgContent

chat

ChatApi

Returns

void | Promise<void>


options

options: BotOptions

Defined in: src/bot.ts:40


profile

profile: Profile

Defined in: src/bot.ts:37


simplexDomain?

optional simplexDomain?: string | null

Defined in: src/bot.ts:38