mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-18 20:33:28 +02:00
better debug on connection and logins
This commit is contained in:
@@ -8,6 +8,7 @@ module.exports = function(socket) {
|
|||||||
port: socket.connectionParams.port,
|
port: socket.connectionParams.port,
|
||||||
username: socket.connectionParams.username
|
username: socket.connectionParams.username
|
||||||
});
|
});
|
||||||
|
console.log('logged in > ' + socket.connectionParams.hostname + ':' + socket.connectionParams.port + ' - ' + ' Username: ' + socket.mcbot.username);
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ module.exports = function(socket) {
|
|||||||
require('../../bot')(socket);
|
require('../../bot')(socket);
|
||||||
|
|
||||||
// debug
|
// debug
|
||||||
console.log('login > ' + data.hostname + ':' + data.port + ' - ' + ' Username: ' + data.username);
|
console.log('connecting > ' + data.hostname + ':' + data.port + ' - ' + ' Username: ' + data.username);
|
||||||
socket.emit('buffer:info', 'Connecting to server ' + data.hostname + ':' + data.port);
|
socket.emit('buffer:info', 'Connecting to server ' + data.hostname + ':' + data.port);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user