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"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -4,7 +4,8 @@
|
||||
"description": "SupportBot is an open-sourced support system for discord. It's completely free to use with high amounts of customization to match your own brand.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "npm i && node index.js"
|
||||
"start": "npm i && node index.js",
|
||||
"test": "node index.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in new issue
Block a user