From c21780272b194db885d95c18a0d5c6d283ac7f96 Mon Sep 17 00:00:00 2001 From: 4Parker02991 <4parker02991@noreply.localhost> Date: Fri, 12 Jan 2024 12:28:14 -0500 Subject: [PATCH] Delete .index.js.3066437094~ what the fard??? --- .index.js.3066437094~ | 74 ------------------------------------------- 1 file changed, 74 deletions(-) delete mode 100644 .index.js.3066437094~ diff --git a/.index.js.3066437094~ b/.index.js.3066437094~ deleted file mode 100644 index a52b5b7..0000000 --- a/.index.js.3066437094~ +++ /dev/null @@ -1,74 +0,0 @@ -const util = require('util') -const createBot = require('./bot.js') -//const chomensjs = require('./ChomensJS') -// TODO: Load a default config -const fs = require('fs/promises') -const fileExist = require('./util/file-exists') -const path = require('path') - -function load () { -//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)) - - try{ -bot.on('error', console.error) - }catch(error){ - - console.log(error.stack) - } -} -} -async function checkConfig () { - if (!await fileExist(path.join(__dirname, 'config.js'))) { - console.error('Config not found! Creating a new Config from ') - await fs.copyFile(path.join(__dirname, 'default.js'), path.join(__dirname, 'config.js')) - } if (await fileExist(path.join(__dirname, 'config.js'))){ - console.log('Config found! loading config please wait,......') - } - - config = require('./config.js') - load() -} - -checkConfig() - -const modules = "./modules"; -const util = "./util"; -const CommandModules = "./CommandModules"; -const commands = "./commands"; -const chat = "./chat"; -fs.readdir(util, (err, files) => { - console.log("Successfully loaded: " + files.length + " util files"); -}); -fs.readdir(modules, (err, files) => { - console.log("Successfully loaded: " + files.length + " module files"); -}); -fs.readdir(commands, (err, files) => { - console.log("Successfully loaded: " + files.length + " command files"); -}); -fs.readdir(CommandModules, (err, files) => { - console.log("Successfully loaded: " + files.length + " CommandModule files"); -}); -fs.readdir(chat, (err, files) => { - console.log("Successfully loaded: " + files.length + " chat files"); -}); - -process.on('uncaughtException', (e) => { - console.log('uncaught ' + e.stack) -}) -