Files
simplex-chat/packages/simplex-chat-nodejs/docs/bot.Interface.BotConfig.md
T
shum f9071033c0 Merge branch 'master' into sh/nodejs-db
# Conflicts:
#	packages/simplex-chat-nodejs/README.md
#	packages/simplex-chat-nodejs/src/download-libs.js
2026-10-10 11:52:33 +00:00

88 lines
1.3 KiB
Markdown

[**simplex-chat**](README.md)
***
[simplex-chat](README.md) / [bot](Namespace.bot.md) / BotConfig
# Interface: BotConfig
Defined in: [src/bot.ts:36](../src/bot.ts#L36)
## Properties
### dbOpts
> **dbOpts**: [`BotDbOpts`](bot.TypeAlias.BotDbOpts.md)
Defined in: [src/bot.ts:39](../src/bot.ts#L39)
***
### events?
> `optional` **events?**: [`EventSubscribers`](api.TypeAlias.EventSubscribers.md)
Defined in: [src/bot.ts:46](../src/bot.ts#L46)
***
### onCommands?
> `optional` **onCommands?**: `object`
Defined in: [src/bot.ts:43](../src/bot.ts#L43)
#### 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](../src/bot.ts#L41)
#### Parameters
##### chatItem
`AChatItem`
##### content
`MsgContent`
##### chat
[`ChatApi`](api.Class.ChatApi.md)
#### Returns
`void` \| `Promise`\<`void`\>
***
### options
> **options**: [`BotOptions`](bot.Interface.BotOptions.md)
Defined in: [src/bot.ts:40](../src/bot.ts#L40)
***
### profile
> **profile**: `Profile`
Defined in: [src/bot.ts:37](../src/bot.ts#L37)
***
### simplexDomain?
> `optional` **simplexDomain?**: `string` \| `null`
Defined in: [src/bot.ts:38](../src/bot.ts#L38)