Resolved issue in pdabHandler
- Port variable was moved out of reach for launchProcess
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user