[Logging] Simplify log func

This commit is contained in:
Ducko 2022-01-29 11:16:24 +00:00
parent 91f0784b00
commit 65058550f2

View file

@ -1,3 +1,3 @@
const rgb = (r, g, b, text) => `\x1b[38;2;${r};${g};${b}m${text}\x1b[0m`;
module.exports = (area, ...args) => console.log(`[${rgb(88, 101, 242, 'OpenAsar')}${area ? ` > ${area}` : ''}]`, ...args);
module.exports = (area, ...args) => console.log(`[${rgb(88, 101, 242, 'OpenAsar')} > ${area}]`, ...args);