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