mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-12-03 20:31:07 -05:00
9 lines
287 B
JavaScript
9 lines
287 B
JavaScript
/* eslint-disable require-jsdoc */
|
|
/* eslint-disable max-len */
|
|
function inject(bot) {
|
|
bot.tellraw = function(selector, message) {
|
|
bot.core.run(`minecraft:tellraw ${selector} ${typeof message === 'string' ? message : JSON.stringify(message)}`);
|
|
};
|
|
};
|
|
|
|
module.exports = {inject};
|