<commit_before>var PlugAPI = require('plugapi');
var fs = require('fs');
var config = require('./config.json');
var songtimer = null;

var scribble = require('scribble');
var Scrobbler = new scribble(config.lastfm.apikey, config.lastfm.apisecret, config.lastfm.username, config.lastfm.password);

var UPDATECODE = '$&2h72=^^@jdBf_n!`-38UHs'; // We're not quite sure what this is yet, but the API doesn't work without it. It's possible that a future Plug update will change this, so check back here to see if this has changed, and set appropriately, if it has. You can omit using it if you wish - the value as of writing needs to be 'fe940c', and is hardcoded into the bot in the event it is not specified below.

// Instead of providing the AUTH, you can use this static method to get the AUTH cookie via twitter login credentials:
PlugAPI.getAuth({
    username: config.botinfo.twitterUsername,
    password: <PASSWORD>.botinfo.twitterPassword
}, function(err, auth) { // if err is defined, an error occurred, most likely incorrect login
    if(err) {
        console.log("An error occurred: " + err);
        return;
    }
    
    initializeModules();
    
    bot.connect(config.roomName);

    bot.on('roomRegister', function(data){
        bot.chat('A wild @' + data.user.profile.username + ' has appeared!');
    });
    
    bot.on('friendJoin', function(data){
        console.log(data);
    });
    bot.on('fanJoin', function(data){
        console.log(data);
    });
    bot.on('roomJoin', function(data) {    
        // Set up the room object
        // console.log(data);
        room = data.room;
        console.log('[CONNECTED]');
        
        room.users.forEach(
            function(user) { addUserToDb(user);
        });
        
        if ( data.user.profile.username !== 'omfgpears'){
            bot.chat('A wild @' + data.user.profile.username + ' has appeared!');
        }
    });
<commit_msg>commented out some API stuffs<commit_after>var PlugAPI = require('plugapi');
var fs = require('fs');
var config = require('./config.json');
var songtimer = null;

var scribble = require('scribble');
var Scrobbler = new scribble(config.lastfm.apikey, config.lastfm.apisecret, config.lastfm.username, config.lastfm.password);

var UPDATECODE = '$&2h72=^^@jdBf_n!`-38UHs'; // We're not quite sure what this is yet, but the API doesn't work without it. It's possible that a future Plug update will change this, so check back here to see if this has changed, and set appropriately, if it has. You can omit using it if you wish - the value as of writing needs to be 'fe940c', and is hardcoded into the bot in the event it is not specified below.

// Instead of providing the AUTH, you can use this static method to get the AUTH cookie via twitter login credentials:
PlugAPI.getAuth({
    username: config.botinfo.twitterUsername,
    password: <PASSWORD>info.twitterPassword
}, function(err, auth) { // if err is defined, an error occurred, most likely incorrect login
    if(err) {
        console.log("An error occurred: " + err);
        return;
    }
    
    initializeModules();
    
    bot.connect(config.roomName);

    bot.on('roomRegister', function(data){
        bot.chat('A wild @' + data.user.profile.username + ' has appeared!');
    });
    
    // bot.on('friendJoin', function(data){
        // console.log(data);
    // });
    // bot.on('fanJoin', function(data){
        // console.log(data);
    // });
    bot.on('roomJoin', function(data) {    
        // Set up the room object
        // console.log(data);
        room = data.room;
        console.log('[CONNECTED]');
        
        room.users.forEach(
            function(user) { addUserToDb(user);
        });
        
        if ( data.user.profile.username !== 'omfgpears'){
            bot.chat('A wild @' + data.user.profile.username + ' has appeared!');
        }
    });

{'fraction_non_alphanumeric': 0.13073749355337802, 'fraction_numerical': 0.0041258380608561115, 'mean_word_length': 2.8179133858267718, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '282656', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1137, 'n_words': 360}