<commit_before>const assert = require('assert')
const expect = require('chai').expect

const conf = require('../config')
const Bot = require('../index')
const test_options = {
  username : conf.test_user,
  oauth    : conf.test_oauth,
  channel  : conf.test_channel
}

describe('Bot', () => {

  describe('init', () => {
    it('should create a new bot instance when given valid arguments', () => {
      const TwitchBot = new Bot(test_options)
    })
    it('should fail when no options given', () => {
      expect(() => new Bot()).to.throw(Error)<commit_msg>Removed config and use env variables instead<commit_after>const assert = require('assert')
const expect = require('chai').expect

const Bot = require('../index')
const test_options = {
  username : process.env.username,
  oauth    : process.env.oauth,
  channel  : process.env.channel
}

describe('Bot', () => {

  describe('init', () => {
    it('should create a new bot instance when given valid arguments', () => {
      const TwitchBot = new Bot(test_options)
    })
    it('should fail when no options given', () => {
      expect(() => new Bot()).to.throw(Error)
{'fraction_non_alphanumeric': 0.16209034543844109, 'fraction_numerical': 0.0, 'mean_word_length': 3.6502057613168724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '6559106', 'n_tokens_mistral': 337, 'n_tokens_neox': 331, 'n_words': 92}