add pretty console formatting

This commit is contained in:
2025-07-04 18:19:25 +02:00
parent c0fc8bccf2
commit 2fd30bd87e
13 changed files with 60 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
import { streamerApi, streamerId, streamerUsers } from "..";
import { logger, streamerApi, streamerId, streamerUsers } from "..";
import { User } from "../user";
type SuccessfulTimeout = { status: true };
@@ -25,7 +25,7 @@ export const timeout = async (user: User, reason: string, duration?: number): Pr
try {
await streamerApi.moderation.banUser(streamerId, { user: user.id, reason, duration });
} catch (err) {
console.error(err);
logger.err(err as string);
return { status: false, reason: 'unknown' }
};