<commit_before>"use strict";

var Discord = require('discord.js');
var bot = new Discord.Client({ queue: true });

var presenceHandler = require('./Handlers/presenceEvent');
var messageHandler = require('./Handlers/messageEvent');

bot.on('ready', function () {
    // When someone's status changes, run a function.
    bot.on('presence', presenceHandler);
    bot.on('message', messageHandler(bot));

});

bot.loginWithToken(process.env.DISCORD_TOKEN);<commit_msg>Prints connected servers when bot loads.<commit_after>"use strict";

var Discord = require('discord.js');
var bot = new Discord.Client({ queue: true });

var presenceHandler = require('./Handlers/presenceEvent');
var messageHandler = require('./Handlers/messageEvent');

var Logger = require('./logger.js');

bot.on('ready', function () {
    // When someone's status changes, run a function.
    bot.on('presence', presenceHandler);
    bot.on('message', messageHandler(bot));

    Logger.log(bot.servers);
});

bot.loginWithToken(process.env.DISCORD_TOKEN);
{'fraction_non_alphanumeric': 0.1650390625, 'fraction_numerical': 0.0, 'mean_word_length': 5.101190476190476, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4378834', 'n_tokens_mistral': 302, 'n_tokens_neox': 301, 'n_words': 70}