Remember to call
saveConfig() after making direct modifications via the API. Without saving, your changes may be lost when the bot restarts.Check Active Database
Use the following call to determine which database backend is currently active. The method returns a string such as"MySQL", "SQLite", or "MongoDB".
Retrieve Database Host
To inspect the configured database host, access thehost field on the database configuration object.
Save Config Changes
After editing configuration values through the API, callsaveConfig() to write the updated state back to the database or YAML file.