mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
add pretty console formatting
This commit is contained in:
@@ -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' }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user