mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
10 lines
274 B
JavaScript
10 lines
274 B
JavaScript
/* eslint-disable require-jsdoc */
|
|
function inject(bot) {
|
|
bot._client.on('position', (position) => {
|
|
bot.position = position;
|
|
bot.write('teleport_confirm', {teleportId: position.teleportId});
|
|
bot.emit('position', position);
|
|
});
|
|
}
|
|
|
|
module.exports = {inject};
|