mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
8 lines
252 B
JavaScript
8 lines
252 B
JavaScript
/* 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};
|