mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-31 18:28:28 +02:00
Chat formatting
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
module.exports = function(socket) {
|
||||
|
||||
socket.on('chat', function(data) {
|
||||
if (socket.mcbot) {
|
||||
socket.mcbot.chat(data.message);
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
@@ -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);
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user