From 77ac57591ebded00d84ed85a8cf6de5f16c80f36 Mon Sep 17 00:00:00 2001 From: Jesmaster Date: Sat, 7 May 2022 20:37:28 -0400 Subject: [PATCH 1/2] Update token to pull from env --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 33c352a..368a272 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ require('dotenv').config(); const fs = require('fs'), - { token } = require('./config.json'), + { token } = process.env.TOKEN, client = new Client({ intents: [ Intents.FLAGS.GUILDS, From c5b12e842ed0020e4bb435f58cd391ccb752d4b9 Mon Sep 17 00:00:00 2001 From: Jesmaster Date: Sat, 7 May 2022 20:38:33 -0400 Subject: [PATCH 2/2] Fixed token variable --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 368a272..62d4958 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ require('dotenv').config(); const fs = require('fs'), - { token } = process.env.TOKEN, + token = process.env.TOKEN, client = new Client({ intents: [ Intents.FLAGS.GUILDS,