15 lines
416 B
JavaScript
15 lines
416 B
JavaScript
function inject (bot) {
|
||
bot.fancyMsg = function (rank, username, message) {
|
||
bot.core.run(`/tellraw @a ${JSON.stringify([
|
||
{ text: '', color: 'gray' },
|
||
{ text: '[', color: 'dark_gray' },
|
||
rank,
|
||
{ text: '] ', color: 'dark_gray' },
|
||
{ text: username, color: bot.colors.secondary },
|
||
{ text: ' › ', color: 'dark_gray' },
|
||
message
|
||
])}`)
|
||
}
|
||
}
|
||
|
||
module.exports.bot = inject
|