For the complete documentation index, see llms.txt. This page is also available as Markdown.

How To Update

This guide walks you through how to safely update Drako Bot to the latest version while keeping your configuration and addons.

Overview

What you’ll do:

1

Download the latest Drako Bot files

2

Remove old application files

Keep the items listed in Step 2.

3

Copy in the new files and folders

4

Update the dashboard addon

Only if you own it.

5

Install dependencies, start the bot, and check the dashboard

Your config will automatically update when you start Drako Bot with the new version.

Before You Start

Stop the bot and back up MongoDB. When moving from v1, use the v2 configuration files and transfer your settings; supported database records import automatically on startup.

Make a quick backup of your bot folder, just in case:

  • Copy the entire bot folder to another location, or

  • At least back up the config and addons folders.

Step 1 β€” Download the Latest Files

1

Download the latest release

Download the latest release of Drako Bot.

2

Extract the archive

Extract the downloaded archive to a temporary folder on your desktop.

Step 2 β€” Delete Old Files (Keep config & addons)

Navigate to your existing Drako Bot folder.

1

Delete old application files

Delete all old files and folders in the bot’s directory.

2

Keep these items

Do not delete:

  • config folder

  • addons folder

  • Saved transcripts and any custom addon data

  • Your .env file, if you use one

  • The old data folder, if present, until startup moves its required files into config/.data

Step 3 β€” Add the New Files

1

Open the extracted files

Open the folder containing the latest Drako Bot release from Step 1.

2

Select the application files

Select the new bot files, excluding config and addons. Keep all other items listed in Step 2.

3

Copy the new files

Copy the selected files into your existing Drako Bot directory.

Step 4 β€” Update the Dashboard (Owners Only)

Skip this step if you do not own or use the dashboard addon.

Keep the bot stopped while you replace the files:

1

Download and extract the dashboard release

Download and extract the dashboard release into a temporary folder.

2

Remove the old dashboard files

After making the backup above, delete only addons/dashboard from your bot folder. Keep the addons folder itself and all other addons.

3

Copy in the new dashboard folder

Place the new dashboard folder inside your bot's addons folder.

The result should include addons/dashboard/index.js, not addons/dashboard/dashboard/index.js.

4

Keep your existing settings

Keep the complete config folder, including config/core.yml, config/guilds and hidden files. This preserves your dashboard setup, server settings and saved data.

If you are only updating the dashboard, complete Before You Start, this step, and Step 5. You do not need to delete the bot's other application files.

Step 5 β€” Start the Bot and Check the Update

1

Install dependencies

Open a terminal in the main bot folder, where its package.json is located, and run:

2

Start the bot

Run:

Or start the bot through your usual hosting panel or process manager. Your config will update automatically.

3

Check the dashboard

If you use the dashboard, check the startup console for dashboard errors, then open your usual dashboard URL and sign in. Open a module to check that its settings load.

4

Hard refresh if needed

If the browser still shows the old dashboard layout, perform a hard refresh with Ctrl + Shift + R (Windows/Linux) or Cmd + Shift + R (macOS).

Keep the complete config folder, including hidden files. v2 stores required bot data in config/.data and removes the old data folder once it is empty.

Last updated