mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-04 08:05:40 -05:00
39 lines
763 B
TypeScript
39 lines
763 B
TypeScript
import translations from '../../resources/Translations.json';
|
|
|
|
export default function format (
|
|
bot: any,
|
|
time: any,
|
|
dayName: any,
|
|
month: any,
|
|
dayNumber: any,
|
|
year: any,
|
|
type: any,
|
|
server: any,
|
|
message: any,
|
|
) {
|
|
let component = [
|
|
{
|
|
translate: translations["console.format.text"],
|
|
color: "light_purple",
|
|
with: [
|
|
{ text: `${time}`, color: "blue" },
|
|
{
|
|
translate: translations["console.format.date"],
|
|
color: "aqua",
|
|
with: [
|
|
dayName,
|
|
month,
|
|
dayNumber,
|
|
year
|
|
]
|
|
},
|
|
type,
|
|
{ text: `${server}`, color: "aqua" },
|
|
]
|
|
|
|
},
|
|
bot.getMessageAsPrismarine(message)?.toAnsi()
|
|
]
|
|
return component;
|
|
}
|