ES6 Stuff

This commit is contained in:
AlexKvazos
2015-05-19 20:05:53 -05:00
parent 8b0e87e986
commit 127e163f73
17 changed files with 45 additions and 46 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
module.exports = (socket) => {
export default (socket) => {
function onEnd() {
let onEnd = () => {
socket.emit('bot:disconnect');
delete socket.mcbot;
}
};
socket.mcbot.on('end', onEnd);