Resolved issue in pdabHandler

- Port variable was moved out of reach for launchProcess
This commit is contained in:
Logan Cusano
2024-05-13 01:19:54 -04:00
parent c240007c2b
commit e54c80a95b

View File

@@ -16,6 +16,7 @@ let pdabProcess = false;
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const port = process.env.PDAB_PORT || 3000;
let botCallback;
@@ -27,8 +28,6 @@ export const initDiscordBotClient = (clientId, callback, runPDAB = true) => {
}
export const startPdabSocketServer = () => {
const port = process.env.PDAB_PORT || 3000;
io.on('connection', (socket) => {
console.log('A user connected');