mongoDB
Configures the bot to use MongoDB as the data storage adapter.
This method sets up the MongoDBDataAdapter as the data adapter for the bot, allowing it to interact with a MongoDB database for storing and retrieving data provided by storage units.
Additionally, this method registers a hook with beforeKoinSetup, which checks that the database is reachable, and runs any pending migrations.
Usage:
ExtensibleBotBuilder(...) {
mongoDB()
}Content copied to clipboard