mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -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};
|