Added 3 new settings in supportbot.yml for more customization
This commit is contained in:
1 parent
eab11361cb
commit
38da72ca91
6 files changed
+2064
-16
No files matched your search
@@ -38,9 +38,11 @@ class Client extends Discord.Client {
|
||||
}
|
||||
|
||||
async start(token) {
|
||||
const commandFiles = fs
|
||||
.readdirSync("./Commands")
|
||||
.filter((file) => file.endsWith(".js"));
|
||||
var tempCommandFiles = fs.readdirSync("./Commands").filter((file) => file.endsWith(".js"));
|
||||
if (supportbot.DisableSuggestionsChannel) {
|
||||
tempCommandFiles = tempCommandFiles.filter(item => item !== "suggest.js");
|
||||
}
|
||||
const commandFiles = tempCommandFiles;
|
||||
|
||||
const addonFiles = fs
|
||||
.readdirSync("./Addons")
|
||||
|
||||
Reference in new issue
Block a user