Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Updating and extras

Update Talon without losing data, turn off the update check and add your own modules.

On this page

Updating#

  1. Stop the bot and back up data, config and .env.
  2. Replace everything else in the Talon folder with the files from the new zip. Keep your data and config folders and your .env.
  3. Run npm install --omit=dev.
  4. Start the bot.

When a module has new settings, they use their defaults until you save the module file or the dashboard page. When there is a new module, Talon creates its file in config/modules on the first start.

The file build.json in the zip lists the version and a SHA-256 checksum for every file of Talon, so you can check that a file is unchanged.

Update check#

At startup Talon asks api.builtbyotte.com for the latest version. When a newer version is out, the console shows [talon] Version <new> is available. You are on <installed>. Nothing about your server or your members is sent. Turn the check off with UpdateCheck: false in config.yml.

Addons#

You can add your own modules. Put a .js file, or a folder with an index.js, in a folder named addons next to src. Talon loads them at startup and the console shows [addons] loaded <file>. A module that fails to load is reported in the console and skipped.

A module is an object with a lowercase name (letters, digits and dashes, starting with a letter), and optionally label, description, category, schema for its settings, commands, events, components, modals and jobs, the same way the built-in modules in src/modules do. Study those files as examples. A module with a schema gets its own file in config/modules, its own dashboard page and an Enable switch. A name or command that is already used by another module is rejected.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.