mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-18 20:33: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', {
|
||||
host: socket.connectionParams.hostname,
|
||||
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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user