add vulnchatters command and add comments

This commit is contained in:
2025-06-24 20:14:45 +02:00
parent dcfb013447
commit 5728440fcd
6 changed files with 44 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ export const timeout = async (target: string | User, reason: string, duration?:
if (banStatus[0]) return { status: false, reason: 'banned' };
if (await streamerApi.moderation.checkUserMod(streamerId, user.id!)) {
if (!duration) duration = 60;
if (!duration) duration = 60; // make sure that mods don't get perma-banned
remodMod(user, duration);
await streamerApi.moderation.removeModerator(streamerId, user.id!);
};