From 1d61f56070af8d336d9d3d4baf291fd733652e18 Mon Sep 17 00:00:00 2001 From: Sepp J Morris Date: Mon, 12 Oct 2020 14:27:16 +0200 Subject: [PATCH] A non hard crash error. - Update app.js and conf.json --- zoizbot/app.js | 4 +--- zoizbot/conf.json | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/zoizbot/app.js b/zoizbot/app.js index 4e2541d..80aea06 100644 --- a/zoizbot/app.js +++ b/zoizbot/app.js @@ -37,6 +37,4 @@ fs.readdir(`./commands/`, (err, files) => { console.log("=============================================="); }); - - -zoizbot.login(config.token); //reading the "token" from the const config = conf.json btw the one you see is invalid now +zoizbot.login(config.token).catch(console.error); //reading the "token" from the const config = conf.json btw the one you see is invalid now \ No newline at end of file diff --git a/zoizbot/conf.json b/zoizbot/conf.json index aeacca4..e9ed938 100644 --- a/zoizbot/conf.json +++ b/zoizbot/conf.json @@ -1,4 +1,4 @@ { - "token": "null", + "token": "", "prefix": ">" }