mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-31 18:28:28 +02:00
Send username on bot:connect event instead of email
This commit is contained in:
@@ -6,7 +6,7 @@ module.exports = function(socket) {
|
|||||||
socket.emit('bot:connect', {
|
socket.emit('bot:connect', {
|
||||||
host: socket.connectionParams.hostname,
|
host: socket.connectionParams.hostname,
|
||||||
port: socket.connectionParams.port,
|
port: socket.connectionParams.port,
|
||||||
username: socket.connectionParams.username
|
username: socket.mcbot.username
|
||||||
});
|
});
|
||||||
console.log('logged in > ' + socket.connectionParams.hostname + ':' + socket.connectionParams.port + ' - ' + ' Username: ' + socket.mcbot.username);
|
console.log('logged in > ' + socket.connectionParams.hostname + ':' + socket.connectionParams.port + ' - ' + ' Username: ' + socket.mcbot.username);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user