From 8096e5b882fbedbdaa4fa893aca0b7e37df96877 Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 4 Dec 2021 21:25:02 -0600 Subject: [PATCH] Add npm test --- Structures/Client.js | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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",