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