> For the complete documentation index, see [llms.txt](https://docs.discordbotfactory.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.discordbotfactory.com/basics/project.md).

# Project Files

This page provides an overview of the Bot Project Files, their functions and how to handle and mitigate corrupted or missing files.

### What does each file do?

Here's a rundown of each file in your project, and what it does.

<pre data-title="Project-name/" data-expandable="true"><code><strong>├─ bot.config.json 
</strong>Bot settings and current flow live here
<strong>├─ bot.js
</strong>Generated JavaScript your bot runs
<strong>├─ package.json
</strong>Dependencies and Scripts
<strong>├─ package-lock.json
</strong>Dependency versions for repeatable installs
<strong>├─ node_modules/ 
</strong>Downloaded packages
</code></pre>

### Help I deleted some files

If you're missing some project files, head to the Projects page and **right click** the folder icon in the current projects section

<div data-with-frame="true"><figure><img src="https://2205442932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp603l6izRqmZfqN60GqQ%2Fuploads%2FpGSQUbQ86SIeo9Ye0tGt%2Fimage.png?alt=media&amp;token=752d27da-315e-4990-a400-926f07a9b522" alt="" width="563"><figcaption><p>Right-click the folder icon</p></figcaption></figure></div>

{% tabs %}
{% tab title="Good Project files" %}

<div data-with-frame="true"><figure><img src="https://2205442932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp603l6izRqmZfqN60GqQ%2Fuploads%2Fm04y9C0L1Rj2FYcVUFhx%2Fimage.png?alt=media&amp;token=d377c9f1-9f38-49f1-bf7f-32b1d04d5cf5" alt="" width="563"><figcaption></figcaption></figure></div>
{% endtab %}

{% tab title="Bad Project files" %}

<div align="center" data-full-width="false" data-with-frame="true"><figure><img src="https://2205442932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp603l6izRqmZfqN60GqQ%2Fuploads%2FpccKJRcSezXBHx8qeHok%2Fimage.png?alt=media&amp;token=d490677e-8110-4101-a539-83c81231d869" alt="" width="563"><figcaption></figcaption></figure></div>
{% endtab %}
{% endtabs %}

If a file/folder is marked as <mark style="color:red;">Missing</mark>, simply click the <mark style="color:blue;">Regenerate</mark> button on the right of the file to restore it.

### Corrupted folder

By default, the app maintains crucial local backups in case of corrupted or missing files. If you open the app with a corrupted bot, you'll be prompted to restore from the latest backup.

<div data-with-frame="true"><figure><img src="https://2205442932-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fp603l6izRqmZfqN60GqQ%2Fuploads%2F9KPyDeBK9buoD6dwc0W1%2Fimage.png?alt=media&amp;token=8a031fb7-219b-4931-a88a-15ce775830cf" alt="" width="563"><figcaption></figcaption></figure></div>
