mirror of
https://github.com/ApfelTeeSaft/Reload-Backend.git
synced 2026-08-27 03:43:27 +00:00
37 lines
831 B
JavaScript
37 lines
831 B
JavaScript
const fs = require("fs");
|
|
const config = JSON.parse(fs.readFileSync("./Config/config.json").toString());
|
|
|
|
function backend(...args) {
|
|
let msg = args.join(" ");
|
|
console.log(`\x1b[32mReload Backend Log\x1b[0m: ${msg}`);
|
|
}
|
|
|
|
function bot(...args) {
|
|
let msg = args.join(" ");
|
|
console.log(`\x1b[33mReload Bot Log\x1b[0m: ${msg}`);
|
|
}
|
|
|
|
function xmpp(...args) {
|
|
let msg = args.join(" ");
|
|
console.log(`\x1b[34mReload Xmpp Log\x1b[0m: ${msg}`);
|
|
}
|
|
|
|
function error(...args) {
|
|
let msg = args.join(" ");
|
|
console.log(`\x1b[31mReload Error Log\x1b[0m: ${msg}`);
|
|
}
|
|
|
|
function debug(...args) {
|
|
if (config.bEnableDebugLogs === true) {
|
|
let msg = args.join(" ");
|
|
console.log(`\x1b[35mReload Debug Log\x1b[0m: ${msg}`);
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
backend,
|
|
bot,
|
|
xmpp,
|
|
error,
|
|
debug
|
|
}; |