diff --git a/CHANGELOG.md b/CHANGELOG.md index 794754e9..c4c08f96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - dataProviders renamed to Providers ### Fixed +- Fixed validateData Booleans. - Fixed Reloading Events not loading new events correctly. - Fixed Typo in transfer command - Fixed Usage not working properly with selective diff --git a/functions/validateData.js b/functions/validateData.js index 8bac80b2..4fa7806d 100644 --- a/functions/validateData.js +++ b/functions/validateData.js @@ -38,7 +38,7 @@ module.exports = (data, properties, values) => { } break; case "bool": - if (!["true", "false", true, false, 1, 0].includes(v.toLowerCase())) { + if (!["true", "false", true, false, 1, 0].includes(!!JSON.parse(v))) { throw new Error(`at value #${i + 1}: The 'bool' type must be 'true(1)' or 'false(0)', got '${v}`); } break; diff --git a/package.json b/package.json index 3c122eee..16fb04d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "komada", - "version": "0.17.4", + "version": "0.17.5", "author": "Evelyne Lachance", "description": "Komada: Croatian for 'pieces', is a modular bot system including reloading modules and easy to use custom commands.", "main": "app.js",