<commit_before>#!/usr/bin/env node

require('dotenv').config({silent: true});

var irc = require('irc'),
    msgListener = require('./lib/messageListener'),
    msgAnnouncer = require('./lib/messageAnnouncer');

var server = process.env.SERVER,
    nickname = process.env.NICKNAME,
    channels = process.env.CHANNELS,
    username = process.env.USERNAME,
    password = process.env.PASSWORD;

var Bot = new irc.Client(server, nickname, {
    debug: true,
    channels: [channels]
});

// TODO: Add into config
var standard_messages = [
    {message: "Welcome. Please post any problems at http://cncnet.org/forums Slow game/black screen? Enable TS-DDRAW in Client Options"},
    {message: "Kaboom or Crashes? Please post your cncnetclient.log found in your game directory at http://cncnet.org/forums"},
    {message: "Maps not showing correctly? Ensure you have NET Framework 4 installed"}
];

var toptips_messages = [
    {message: "Did you know, team chat is available in game by typing with Backspace? Chat to everyone in game by typing with Enter."},
    {message: "Did you know, it's quicker to deploy your MCV by pressing N, followed by D on your keyboard?"},
    {message: "Did you know, using the T hotkey whilst selecting a unit will 'select all' units of that type?"}
];

// Upon the Bot joining the lobby
Bot.addListener('join', function (channel, who) {
    if (who == nickname && channel == channels) {

        // Ops status
        Bot.send('OPER', username, password);
        Bot.send('samode', channels, '+o', nickname);
<commit_msg>Debug to false<commit_after>#!/usr/bin/env node

require('dotenv').config({silent: true});

var irc = require('irc'),
    msgListener = require('./lib/messageListener'),
    msgAnnouncer = require('./lib/messageAnnouncer');

var server = process.env.SERVER,
    nickname = process.env.NICKNAME,
    channels = process.env.CHANNELS,
    username = process.env.USERNAME,
    password = process.env.PASSWORD;

var Bot = new irc.Client(server, nickname, {
    debug: false,
    channels: [channels]
});

// TODO: Add into config
var standard_messages = [
    {message: "Welcome. Please post any problems at http://cncnet.org/forums Slow game/black screen? Enable TS-DDRAW in Client Options"},
    {message: "Kaboom or Crashes? Please post your cncnetclient.log found in your game directory at http://cncnet.org/forums"},
    {message: "Maps not showing correctly? Ensure you have NET Framework 4 installed"}
];

var toptips_messages = [
    {message: "Did you know, team chat is available in game by typing with Backspace? Chat to everyone in game by typing with Enter."},
    {message: "Did you know, it's quicker to deploy your MCV by pressing N, followed by D on your keyboard?"},
    {message: "Did you know, using the T hotkey whilst selecting a unit will 'select all' units of that type?"}
];

// Upon the Bot joining the lobby
Bot.addListener('join', function (channel, who) {
    if (who == nickname && channel == channels) {

        // Ops status
        Bot.send('OPER', username, password);
        Bot.send('samode', channels, '+o', nickname);

{'fraction_non_alphanumeric': 0.12371134020618557, 'fraction_numerical': 0.0006443298969072165, 'mean_word_length': 3.7260273972602738, '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': '1915248', 'n_tokens_mistral': 925, 'n_tokens_neox': 902, 'n_words': 336}