mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-03 19:58:27 +02:00
Core vanilla functionality
The client now understands chat events, command usage events, death events, teleport events, and join/leave events
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
var escapeHtml = require('../../utils').escapeHtml;
|
||||
|
||||
module.exports = function(socket) {
|
||||
|
||||
socket.mcbot.on('chat', function(username, message) {
|
||||
var text = '<' + username + '> ' + message;
|
||||
socket.emit('bot:message', escapeHtml(text));
|
||||
});
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user