Files
MinecraftChat/app/server/sockets/events/chat.js
T
2015-04-28 10:49:49 -05:00

9 lines
152 B
JavaScript

module.exports = function(socket) {
socket.on('chat', function(data) {
if (socket.mcbot) {
socket.mcbot.chat(data.message);
}
});
};