Change language config enable all to null
This commit is contained in:
parent
b1ecae7841
commit
30f39622e8
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
"Language whitelist, e.g.",
|
"Language whitelist, e.g.",
|
||||||
"haskell",
|
"haskell",
|
||||||
"python",
|
"python",
|
||||||
"Leave empty to enable all languages"
|
"Change to null to enable all languages"
|
||||||
],
|
],
|
||||||
"memory": "128m",
|
"memory": "128m",
|
||||||
"cpus": "0.5",
|
"cpus": "0.5",
|
||||||
|
|
|
@ -12,7 +12,7 @@ class LanguageHandler extends AkairoHandler {
|
||||||
extensions = ['.js', '.ts'],
|
extensions = ['.js', '.ts'],
|
||||||
automateCategories,
|
automateCategories,
|
||||||
loadFilter = filepath =>
|
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, {
|
super(client, {
|
||||||
directory,
|
directory,
|
||||||
|
|
Loading…
Reference in a new issue