mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-19 04:43:28 +02:00
Modularized event listeners
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
var mineflayer = require('mineflayer');
|
||||
|
||||
|
||||
module.exports = function(io) {
|
||||
|
||||
io.on('connection', function(socket) {
|
||||
|
||||
// bind all events to the socket
|
||||
// bind all listeners to the socket
|
||||
require('./events/connection')(socket);
|
||||
require('./events/disconnection')(socket);
|
||||
require('./events/chat')(socket);
|
||||
|
||||
Reference in New Issue
Block a user