Merge branch 'master' into feature/Integrate-Emmelia-into-Cor

This commit is contained in:
2023-05-07 04:12:01 -04:00
2 changed files with 48 additions and 12 deletions

View File

@@ -20,10 +20,20 @@ class Options {
* @param updatedId The updated ID assigned to the bot
*/
exports.updateId = (updatedId) => {
const options = new Options("id", updatedId);
this.updateConfig('id', updatedId);
}
/**
*
* @param {string} key The config file key to update with the value
* @param {string} value The value to update the key with
*/
exports.updateConfig = function updateConfig(key, value) {
const options = new Options(key, value);
updateConfigFile(options, (updatedFiles) => {
// Do Something
log.DEBUG("Updated config file: ", updatedFiles);
})
}