Updating#
- Stop the bot and back up
data,configand.env. - Replace everything else in the Talon folder with the files from the new zip. Keep your
dataandconfigfolders and your.env. - Run
npm install --omit=dev. - 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.