.gitigore updated and Bot Login secured with dotenv

This commit is contained in:
Luca Schwan
2020-03-25 11:14:48 +01:00
parent b4d041c5de
commit 83c3f62ce1
2 changed files with 5 additions and 1 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
node_modules
.env

View File

@ -1,3 +1,4 @@
require('dotenv').config();
const Discord = require('discord.js');
const bot = new Discord.Client();
const mysql = require('mysql');
@ -129,5 +130,5 @@ bot.on('message', (message) =>{
);}
});
bot.login('NjkwMjIxODMwMTk5NDQzNDgy.XnPXvg.w3zGhtCtjzfM2CJ-yiOvuDWT3cw');
bot.login('process.env.BOT_TOKEN');