diff --git a/setup.sh b/setup.sh index f21ea20..c1c608e 100644 --- a/setup.sh +++ b/setup.sh @@ -94,8 +94,8 @@ rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED # Getting the Python DAB echo "Installing PDAB and Dependencies" -git clone -b DRBv3 https://git.vpn.cusano.net/logan/Python-Discord-Audio-Bot.git ./discordAudioBot/pdab -pip3 install -r ./discordAudioBot/pdab/requirements.txt +git clone -b DRBv3 https://git.vpn.cusano.net/logan/Python-Discord-Audio-Bot.git ./pdab +pip3 install -r ./pdab/requirements.txt # Create a systemd service file for the DRB Client echo "Adding DRB Node service..." diff --git a/src/discordAudioBot/pdabHandler.mjs b/src/discordAudioBot/pdabHandler.mjs index 875190f..a5d5452 100644 --- a/src/discordAudioBot/pdabHandler.mjs +++ b/src/discordAudioBot/pdabHandler.mjs @@ -25,7 +25,7 @@ let botCallback; export const initDiscordBotClient = (clientId, callback, runPDAB = true) => { botCallback = callback; - if (runPDAB) launchProcess("python", [join(__dirname, "./pdab/main.py"), process.env.AUDIO_DEVICE_ID, clientId, port], false, false, join(__dirname, "./pdab")); + if (runPDAB) launchProcess("python", [join(__dirname, "../../pdab/main.py"), process.env.AUDIO_DEVICE_ID, clientId, port], false, false, join(__dirname, "../../pdab")); pdabProcess = true; // TODO - Make this more dynamic }