From 6398e39359c50fa4b3bda48508df5f1c50fa4db2 Mon Sep 17 00:00:00 2001 From: benji7425 Date: Thu, 14 Sep 2017 21:57:11 +0100 Subject: [PATCH] Add passing in of token file --- app/index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/index.js b/app/index.js index 2c3f977..7c427b1 100644 --- a/app/index.js +++ b/app/index.js @@ -94,4 +94,4 @@ module.exports = { viewFeeds }; -Core.bootstrap(module.exports, GuildData, require("./commands.json")); \ No newline at end of file +Core.bootstrap(require("../" + process.argv[2]), module.exports, GuildData, require("./commands.json")); \ No newline at end of file diff --git a/package.json b/package.json index 5967445..6580f55 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "main": "app/index.js", "scripts": { "postinstall": "cd ./discord-bot-core && npm install", - "start": "node app/index.js" + "start": "node app/index.js token.json" }, "dependencies": { "discord.js": "11.1.0",