.gitigore updated and Bot Login secured with dotenv
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,4 @@
|
||||
node_modules
|
||||
.env
|
||||
|
||||
|
||||
|
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user