Chat formatting

This commit is contained in:
AlexKvazos
2015-04-28 10:49:49 -05:00
parent 16da80bf5a
commit 542ae1f549
9 changed files with 85 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
module.exports = function(socket) {
socket.on('chat', function(data) {
if (socket.mcbot) {
socket.mcbot.chat(data.message);
}
});
};
+1
View File
@@ -8,6 +8,7 @@ module.exports = function(io) {
// bind all events to the socket
require('./events/connection')(socket);
require('./events/disconnection')(socket);
require('./events/chat')(socket);
});