<commit_before>const path = require('path') // core

const config = require('../config')
const moduleLoader = require('../modules.js')

global.__rootdir = path.resolve(path.join(__dirname, '..'))

let self
module.exports = self = {
  config: config.loadFile('test/testConfig.json'),
  channel: '#test',
  setChannel: function (channel) {
    self.channel = channel
  },
  commands: {},
  events: [],
  loadModule: function (module) {
    moduleLoader.loadModule(self, './modules/' + module)
  },
  runCommand: function (text, args) {
    let reply = ''
    const bot = {
      say: function (to, sayMsg) {
        // these don't actually work yet
        reply += sayMsg
      },
      notice: function (to, sayMsg) {
        reply += sayMsg
      },
      config: this.config,<commit_msg>Fix mockBot event registration<commit_after>const path = require('path') // core

const config = require('../config')
const moduleLoader = require('../modules.js')

global.__rootdir = path.resolve(path.join(__dirname, '..'))

let self
module.exports = self = {
  config: config.loadFile('test/testConfig.json'),
  channel: '#test',
  setChannel: function (channel) {
    self.channel = channel
  },
  commands: {},
  events: {},
  loadModule: function (module) {
    moduleLoader.loadModule(self, './modules/' + module)
  },
  runCommand: function (text, args) {
    let reply = ''
    const bot = {
      say: function (to, sayMsg) {
        // these don't actually work yet
        reply += sayMsg
      },
      notice: function (to, sayMsg) {
        reply += sayMsg
      },
      config: this.config,
{'fraction_non_alphanumeric': 0.1554858934169279, 'fraction_numerical': 0.0, 'mean_word_length': 2.8550724637681157, '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': '3776817', 'n_tokens_mistral': 479, 'n_tokens_neox': 476, 'n_words': 122}