diff --git a/Structures/Client.js b/Structures/Client.js index 24f9aa5..2303374 100644 --- a/Structures/Client.js +++ b/Structures/Client.js @@ -116,8 +116,7 @@ class Client extends Discord.Client { console.log(`\u001b[34;1m`, "▬▬▬▬▬▬▬ Events ▬▬▬▬▬▬▬"); console.log(" "); - console.log(process.title); - if (process.title != "npm test") { + if (process.argv[0] != "test") { this.login(token); } else { console.log( diff --git a/package.json b/package.json index 28f13e3..c24ff2e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "scripts": { "start": "npm i && node index.js", - "test": "node index.js" + "test": "node index.js test" }, "repository": { "type": "git",