const Discord = require('discord.js');
const client = new Discord.Client();
const _ = require('lodash');
const winston = require('winston');

require('dotenv').config();

const channel_handler = require('./channel_handler');
const presence_handler = require('./presence_handler');

winston.configure({
  transports: [
    new (winston.transports.Console)({
      timestamp: true,
    }),
    new (winston.transports.File)({
      filename: 'sgs_bot.log',
    }),
  ],
});

client.on('ready', () => {
  winston.log('info', 'Logged into Discord as %s', client.user.tag);
  // set creepy presence
  client.user.setPresence({
    status: 'online',
    afk: false,
    game: {
      name: 'Big Brother',
      url: '',
    },
  });
});

client.on('presenceUpdate', presence_handler.handlePresenceUpdate);
client.on('voiceStateUpdate', channel_handler.handleVoiceStateUpdate);

client.login('MzMwMDgzODQ2NzQzNjU0NDAx.DDb8_A.Aq9f9KnUQq4Hu_oqVxxULnS5BUY');

const Discord = require('discord.js');
const client = new Discord.Client();
const _ = require('lodash');
const winston = require('winston');

require('dotenv').config();

const channel_handler = require('./channel_handler');
const presence_handler = require('./presence_handler');

winston.configure({
  transports: [
    new (winston.transports.Console)({
      timestamp: true,
    }),
    new (winston.transports.File)({
      filename: 'sgs_bot.log',
    }),
  ],
});

client.on('ready', () => {
  winston.log('info', 'Logged into Discord as %s', client.user.tag);
  // set creepy presence
  client.user.setPresence({
    status: 'online',
    afk: false,
    game: {
      name: 'Big Brother',
      url: '',
    },
  });
});

client.on('presenceUpdate', presence_handler.handlePresenceUpdate);
client.on('voiceStateUpdate', channel_handler.handleVoiceStateUpdate);

client.login(process.env.DISCORD_KEY);

Use the config for token
Use the config for token

And yes, I did regenerate that token, don't bother.
