# Troubleshooting

## Bot does not start

* Verify `config.discremy.js` exists in the project root
* Start the bot from the same directory as the config file
* Check CLI preflight output for the failing check

## Missing optional dependency

If you enabled a module, install the matching package:

```bash
npm i @discremy/mongodb
npm i @discremy/mysql
```

## MongoDB enabled but connection fails

* Confirm `modules.mongodb.uri` and `modules.mongodb.name`
* Confirm MongoDB is reachable from your machine
* Check credentials and any network allowlist

## MySQL enabled but connection fails

* Confirm `modules.mysql.host`, `modules.mysql.user`, and `modules.mysql.database`
* Verify `port`, `password`, and server access
* Test with a direct MySQL client to isolate the issue

## Loader notices about missing folders

Messages about optional command folders are informational.

Create those folders only if your bot uses those command types.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.discremy.com/documentation/reference/troubleshooting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
