From 997d2778907d3cc3e4de3c08a01ba3a5bc054ca6 Mon Sep 17 00:00:00 2001 From: Braeden57 Date: Tue, 3 Aug 2021 17:55:56 -0700 Subject: [PATCH] Updated Socket in config --- LPS.js | 2 +- config.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LPS.js b/LPS.js index 14381c3..b24d575 100644 --- a/LPS.js +++ b/LPS.js @@ -105,7 +105,7 @@ async function updateStatus(message, args, prefix) { onDuty: onDuty, updateDuty: updateDuty }; - const socket = io.connect('http://localhost:8080'); + const socket = io.connect(config.socket); socket.emit('bot_update_status', req); socket.on('bot_updated_status', (res) => { return message.channel.send(`Succesfully updated status to **${args[0]}** ${message.author}!`); diff --git a/config.json b/config.json index 8b31643..ed1d88b 100644 --- a/config.json +++ b/config.json @@ -3,5 +3,6 @@ "token": "ODYwMjk4NjgxMDQ3MDU2NDM0.YN5NlQ.m6lQ76B8b0ftjE6hhpoh1AGlYKU", "botID": "860298681047056434", "mongoURI": "mongodb://localhost/27017", - "version": "Beta 0.6.2" + "version": "Beta 0.6.2", + "socket": "http://localhost:8080" } \ No newline at end of file