FridayNightFunkinBoyfriendBot/index.js

29 lines
651 B
JavaScript
Raw Normal View History

2023-12-17 14:55:27 -05:00
const util = require('util')
const createBot = require('./bot.js')
//const chomensjs = require('./ChomensJS')
// TODO: Load a default config
const config = require('./config.js')
const readline = require('readline')
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
})
require('dotenv').config()
const bots = []
for (const options of config.bots) {
const bot = createBot(options)
bots.push(bot)
bot.bots = bots
bot.options.username
bot.console.useReadlineInterface(rl)
// bot.on('error', (error), util.inspect(error))
bot.on('error', error => {
console.log((error))
})
}