Merge branch 'master' into feature/Integrate-Emmelia-into-Cor
This commit is contained in:
@@ -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);
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user