mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-12-02 11:57:39 -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};
|