mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-31 10:18:29 +02:00
ES6 Stuff
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user