mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-31 10:18:29 +02:00
ES6 Stuff
This commit is contained in:
@@ -2,9 +2,9 @@ import mineflayer from 'mineflayer';
|
||||
import moment from 'moment';
|
||||
import events from '../../bot';
|
||||
|
||||
module.exports = (socket) => {
|
||||
export default (socket) => {
|
||||
|
||||
function onConnection(data) {
|
||||
let onConnection = (data) => {
|
||||
|
||||
let timestamp = moment().format('MMM D h:mm:ss a');
|
||||
|
||||
@@ -39,7 +39,7 @@ module.exports = (socket) => {
|
||||
// bind bot events
|
||||
events(socket);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
socket.on('server:connect', onConnection);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user