Skip to content

Commit

Permalink
move token to json
Browse files Browse the repository at this point in the history
  • Loading branch information
Minion3665 committed Sep 6, 2020
1 parent 5c1f0b1 commit 6f404c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
token.txt
token.json
node_modules/
.idea/
.idea/
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -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"}}}, );

Expand Down

0 comments on commit 6f404c5

Please sign in to comment.