gearConfig Handler

This is a sample of how to create a addon config

Config Handler can not be invoked without new

const config = new Utility.config('./addons_config/{filename}.yml', {
 // Your config goes here
})

Replace {filename} with your config name. If you want to use config folders:

const fs = require('fs') // Import fs module

if (!fs.existsSync('./addons_config/FolderName/')) {
    fs.mkdirSync('./addons_config/FolderName')
} // This will create your config folder if not exists

const config = new Utility.config('./addons_config/FolderName/{filename}.yml', {
 // Your config goes here
})

Last updated