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