Added test mode
This commit is contained in:
1 parent
72c0a2efa3
commit
ed1905d8f4
2 files changed
+10
-3
No files matched your search
@@ -116,8 +116,14 @@ class Client extends Discord.Client {
|
||||
|
||||
console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Events ▬▬▬▬▬▬▬");
|
||||
console.log(" ");
|
||||
|
||||
this.login(token);
|
||||
if (process.title != "npm test") {
|
||||
this.login(token);
|
||||
} else {
|
||||
console.log(
|
||||
`\u001b[31;1m`,
|
||||
"RUNNING IN TEST MODE, IF NOT INTENDED, PLEASE USE npm start"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user