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,10 +1,10 @@
module.exports = (socket) => {
export default (socket) => {
function onChat(data) {
let onChat = (data) => {
if (socket.mcbot && socket.mcbot.entity) {
socket.mcbot.chat(data.message);
}
}
};
socket.on('chat', onChat);