show running process in process viewer and add limiting to the notification system

This commit is contained in:
KingKDot
2026-05-16 23:19:46 -05:00
parent e2ef4a375f
commit d691c5b804
11 changed files with 207 additions and 3 deletions
@@ -170,6 +170,19 @@ export async function handleNotificationsConfigRoutes(
}
}
const antiSpamMaxHits =
typeof body?.antiSpamMaxHits === "number"
? Math.max(1, Math.min(10000, Math.floor(body.antiSpamMaxHits)))
: currentConfig.antiSpamMaxHits;
const antiSpamWindowMs =
typeof body?.antiSpamWindowMs === "number"
? Math.max(5000, Math.min(86400000, Math.floor(body.antiSpamWindowMs)))
: currentConfig.antiSpamWindowMs;
const antiSpamCooldownMs =
typeof body?.antiSpamCooldownMs === "number"
? Math.max(5000, Math.min(86400000, Math.floor(body.antiSpamCooldownMs)))
: currentConfig.antiSpamCooldownMs;
const updated = await updateNotificationsConfig({
keywords,
webhookEnabled,
@@ -178,6 +191,9 @@ export async function handleNotificationsConfigRoutes(
telegramBotToken,
telegramChatId,
clipboardEnabled,
antiSpamMaxHits,
antiSpamWindowMs,
antiSpamCooldownMs,
});
for (const client of clientManager.getAllClients().values()) {