From 30f39622e843173031c0449c704922048b11247f Mon Sep 17 00:00:00 2001 From: 1computer1 Date: Fri, 15 Mar 2019 20:27:05 -0400 Subject: [PATCH] Change language config enable all to null --- config.example.json | 2 +- src/struct/LanguageHandler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.example.json b/config.example.json index 8000163..40e78d4 100644 --- a/config.example.json +++ b/config.example.json @@ -5,7 +5,7 @@ "Language whitelist, e.g.", "haskell", "python", - "Leave empty to enable all languages" + "Change to null to enable all languages" ], "memory": "128m", "cpus": "0.5", diff --git a/src/struct/LanguageHandler.js b/src/struct/LanguageHandler.js index 59068de..411f2a5 100644 --- a/src/struct/LanguageHandler.js +++ b/src/struct/LanguageHandler.js @@ -12,7 +12,7 @@ class LanguageHandler extends AkairoHandler { extensions = ['.js', '.ts'], automateCategories, loadFilter = filepath => - !this.client.config.languages.length || this.client.config.languages.includes(path.parse(filepath).name) + !this.client.config.languages || this.client.config.languages.includes(path.parse(filepath).name) }) { super(client, { directory,