chomens-bot-js/plugins/position.js
2022-11-27 14:35:28 +07:00

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 }