From 0716e7ede259ea163f56f5ca10c8557718c0ebfa Mon Sep 17 00:00:00 2001 From: hgw Date: Tue, 3 Oct 2023 00:09:23 +0000 Subject: [PATCH] Correct config file names --- bot.js | 2 +- commands/example1.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 97ee04d..8c9645b 100644 --- a/bot.js +++ b/bot.js @@ -5,7 +5,7 @@ // / /_/ / /_/ / / / / __(__ ) // /_.___/\____/_/ /_/\___/____/ // -var config = require('./config/default.json'); +var config = require('./config/config.json'); var irc = require("irc"); var fs = require("fs"); const { Worker } = require('worker_threads'); diff --git a/commands/example1.js b/commands/example1.js index 0bda2a1..9f4fce1 100644 --- a/commands/example1.js +++ b/commands/example1.js @@ -1,4 +1,4 @@ -const config = require('../config/default.json') +const config = require('../config/config.json') const { parentPort, workerData } = require('worker_threads'); const { d1, d2 } = workerData; //Declare all used variables here (if you only pass 1 variable to this command you only really need d1 in here, but it doesnt matter) var var1 = d1; // Declaring d1 as var1, just for consistancy with the last file but again, this may not be necessary in all cases.