Config Handler
This is a sample of how to create a addon config
const config = new Utility.config('./addons_config/{filename}.yml', {
// Your config goes here
})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