15 lines
No EOL
410 B
JavaScript
15 lines
No EOL
410 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 = inject |