<commit_before>#!/usr/bin/env node
var cfgPath = require('confortable')('.clvr.json', process.cwd());

console.log('using: ' + cfgPath);
var cfg = require(cfgPath);

require('gu')(cfg.server, cfg.name, {
  userName: 'IAmA',
  realName: 'clever',
  debug: false,
  channels: [cfg.chan],
}, require('path').join(__dirname, 'bot'), ['clvr.js']);
<commit_msg>throw when loading externally without local config<commit_after>#!/usr/bin/env node
var cfgPath = require('confortable')('.clvr.json', process.cwd());

if (!cfgPath) {
  throw new Error("When loading wolfram-irc externally, a local config is required");
}
console.log('using: ' + cfgPath);
var cfg = require(cfgPath);

require('gu')(cfg.server, cfg.name, {
  userName: 'IAmA',
  realName: 'clever',
  debug: false,
  channels: [cfg.chan],
}, require('path').join(__dirname, 'bot'), ['clvr.js']);

{'fraction_non_alphanumeric': 0.2044653349001175, 'fraction_numerical': 0.0, 'mean_word_length': 5.604651162790698, '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': '2377869', 'n_tokens_mistral': 303, 'n_tokens_neox': 297, 'n_words': 67}