Throw error on invalid config

This commit is contained in:
SowinskiBraeden committed 2022-09-01 15:36:04 -07:00
1 parent 3ec70dcd54
commit 95a56bc2c8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
module.exports = {
Dev: "PROD.",
Version: "12.4.1",
Version: "12.4.2",
Admins: ["362791661274660874", "329371697570381824"], // Admins of the bot
DefaultPrefix: "?",
ServerID: "955668596745461830",
+1 -1
View File
@@ -17,7 +17,7 @@ class QuarksBot extends Client {
this.logger = new Logger(path.join(__dirname, "..", "logs/Logs.log"));
if (this.config.Token === "")
return new TypeError(
throw new TypeError(
"The config.js is not filled out. Please make sure nothing is blank, otherwise the bot will not work properly."
);