From 83c3f62ce1f92bce304856a7fce051c3bcdd404c Mon Sep 17 00:00:00 2001 From: Luca Schwan Date: Wed, 25 Mar 2020 11:14:48 +0100 Subject: [PATCH] .gitigore updated and Bot Login secured with dotenv --- .gitignore | 3 +++ src/index.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8b13789..094e395 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ +node_modules +.env + diff --git a/src/index.js b/src/index.js index 84196b5..d8ee6d4 100644 --- a/src/index.js +++ b/src/index.js @@ -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');