From 6f404c5f97986677c64bf58f896cd0f938f2a9e0 Mon Sep 17 00:00:00 2001 From: Minion3665 Date: Sun, 6 Sep 2020 21:19:14 +0100 Subject: [PATCH] move token to json --- .gitignore | 4 ++-- index.js | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 0515928..f2c4d91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -token.txt +token.json node_modules/ -.idea/ \ No newline at end of file +.idea/ diff --git a/index.js b/index.js index 434bee0..ad41a52 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,6 @@ "use strict"; const discord = require("discord.js"); -const fs = require('fs'); - -const token = fs.readFileSync("token.txt", "utf8"); +const token = require("token.json"); const client = new discord.Client({disableMentions: "all", partials: ['MESSAGE'], presence: {status: "idle", activity: {name: "discord go by.", type: "WATCHING"}}}, );