From a298be40d598ace63ccba7785bfd0e9c45497cc9 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 3 Jun 2023 15:32:08 -0400 Subject: [PATCH] Accidentally set the wrong variable for the device ID --- Client/controllers/botController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/controllers/botController.js b/Client/controllers/botController.js index 6b94aa7..8880178 100644 --- a/Client/controllers/botController.js +++ b/Client/controllers/botController.js @@ -25,9 +25,9 @@ exports.getStatus = (req, res) => { */ exports.joinServer = async (req, res) => { if (!req.body.clientId || !req.body.channelId) return res.send("500").json({"message": "You must include the client ID (discord token), channel ID (The discord ID of the channel to connect to)"}); - const deviceId = req.body.deviceId; + const deviceId = process.env.AUDIO_DEVICE_ID; const channelId = req.body.channelId; - const clientId = process.env.AUDIO_DEVICE_ID; + const clientId = req.body.clientId; const presetName = req.body.presetName; const NGThreshold = req.body.NGThreshold ?? 50