Files
LawinServerV2/structs/log.js
T
2022-10-14 21:24:53 +01:00

46 lines
886 B
JavaScript

function backend() {
let msg = "";
for (let i in backend.arguments) {
msg += `${i == "0" ? "" : " "}${backend.arguments[i]}`;
}
console.log(`\x1b[32mBACKEND\x1b[0m: ${msg}`);
}
function bot() {
let msg = "";
for (let i in bot.arguments) {
msg += `${i == "0" ? "" : " "}${bot.arguments[i]}`;
}
console.log(`\x1b[33mBOT\x1b[0m: ${msg}`);
}
function xmpp() {
let msg = "";
for (let i in xmpp.arguments) {
msg += `${i == "0" ? "" : " "}${xmpp.arguments[i]}`;
}
console.log(`\x1b[34mXMPP\x1b[0m: ${msg}`)
}
function error() {
let msg = "";
for (let i in error.arguments) {
msg += `${i == "0" ? "" : " "}${error.arguments[i]}`;
}
console.log(`\x1b[31mERROR\x1b[0m: ${msg}`);
}
module.exports = {
backend,
bot,
xmpp,
error
}