Update src/utils/utils.ts

This commit is contained in:
Histmy 2025-05-13 14:36:57 +02:00
parent 7c29ad240f
commit 3fed27d62e

View File

@ -90,6 +90,8 @@ export function adminLog(client: Client, text: string, err?: string | Error) {
}
export function log(...content: unknown[]) {
let jeChyba = false;
const jo = content.map(h => {
if (h instanceof Error) return `\x1b[31m${h.stack || h}\x1b[0m`;
return h;