This commit is contained in:
FreeAppSW 2018-06-22 11:08:26 +03:00
parent 661373baa8
commit b472ef0237
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -5,7 +5,7 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
token
# Runtime data
pids
*.pid
@ -59,3 +59,4 @@ typings/
.env
token.json

View File

@ -1,6 +1,6 @@
const discordapp = require("discord.js");
const fs = require("fs");
const token = fs.readFileSync("./token").toString();
const token = require("./token.json").token;
const discord = new discordapp.Client();
discord.on("ready", () => {