<commit_before>/*
 * owo-whats this - Core file
 * 
 * Contributed by:
 * | Capuccino
 * | Ovyerus
 *
 * Licensed under MIT. Copyright (c) 2017 Capuccino, Ovyerus and the repository contributors.
 */

// Framework imports
const Eris = require('eris');
const fs = require('fs');

//globals w

global.__baseDir = __dirname;
global.Promise = require('breach');
global.logger = require(`${__dirname}/lib/logger`);
global.localeManager = require(`${__dirname}/lib/localeManager`);

// Custom modules
const logger = require(`${__dirname}/lib/logger`);
const CommandHolder = require(`${__dirname}/lib/commands`);
const utils = require(`${__dirname}/lib/utils`);
const parseArgs = require(`${__dirname}/lib/argParser`);

// Setup stuff
const config = require(`${__dirname}/config.json`);
const bot = new Eris(config.token, {
    autoreconnect: true,
    seedVoiceConnections: true,
    maxShards: config.maxShards || 1,
    disableEvents: {
        TYPING_START: true
    }
});
var loadCommands = true;
var allowCommandUse = false;

// Create data files
try {
    require.resolve(`${__dirname}/data/data.json`);
} catch (err) {
    fs.mkdirSync(`${__dirname}/data/`);<commit_msg>Fix Breach require as said in its docs<commit_after>/*
 * owo-whats this - Core file
 * 
 * Contributed by:
 * | Capuccino
 * | Ovyerus
 *
 * Licensed under MIT. Copyright (c) 2017 Capuccino, Ovyerus and the repository contributors.
 */

// Framework imports
const Eris = require('eris');
const fs = require('fs');

//globals w

global.__baseDir = __dirname;
global.Promise = require('breach').Breach;
global.logger = require(`${__dirname}/lib/logger`);
global.localeManager = require(`${__dirname}/lib/localeManager`);

// Custom modules
const logger = require(`${__dirname}/lib/logger`);
const CommandHolder = require(`${__dirname}/lib/commands`);
const utils = require(`${__dirname}/lib/utils`);
const parseArgs = require(`${__dirname}/lib/argParser`);

// Setup stuff
const config = require(`${__dirname}/config.json`);
const bot = new Eris(config.token, {
    autoreconnect: true,
    seedVoiceConnections: true,
    maxShards: config.maxShards || 1,
    disableEvents: {
        TYPING_START: true
    }
});
var loadCommands = true;
var allowCommandUse = false;

// Create data files
try {
    require.resolve(`${__dirname}/data/data.json`);
} catch (err) {
    fs.mkdirSync(`${__dirname}/data/`);
{'fraction_non_alphanumeric': 0.15880370682392586, 'fraction_numerical': 0.004212299915754001, 'mean_word_length': 4.3854875283446715, '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': '163994', 'n_tokens_mistral': 747, 'n_tokens_neox': 749, 'n_words': 178}