Updated Socket in config
This commit is contained in:
1 parent
f7c03488ed
commit
997d277890
2 files changed
+3
-2
No files matched your search
@@ -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}!`);
|
||||
|
||||
+2
-1
@@ -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"
|
||||
}
|
||||
Reference in new issue
Block a user