diff --git a/index.js b/index.js index bd2f293..e9262ec 100644 --- a/index.js +++ b/index.js @@ -1,10 +1,10 @@ const fs = require('fs') const irc = require('irc'); -const settings = JSON.parse(fs.readFileSync(rootDir + '/settings.json')); const readline = require('readline') const model = 'user,date,message' const { dirname } = require('path'); const rootDir = dirname(require.main.filename); +const settings = JSON.parse(fs.readFileSync(rootDir + '/settings.json')); let currentChannel = settings.channels[0]