reduce ghost whisper cooldown

This commit is contained in:
2025-09-14 23:43:47 +02:00
parent 04487d3aae
commit 2fb0670765

View File

@@ -3,7 +3,7 @@ import { sendMessage } from "commands";
import { buildTimeString } from "lib/dateManager"; import { buildTimeString } from "lib/dateManager";
import { chatterEventSub, chatterApi, chatterId } from "main"; import { chatterEventSub, chatterApi, chatterId } from "main";
const WHISPERCOOLDOWN = 60 * 10; // 10 minutes const WHISPERCOOLDOWN = 60 * 5; // 5 minutes
chatterEventSub.onUserWhisperMessage(chatterId, async msg => { chatterEventSub.onUserWhisperMessage(chatterId, async msg => {
if (await redis.ttl(`user:${msg.senderUserId}:timeout`) < 0) return; if (await redis.ttl(`user:${msg.senderUserId}:timeout`) < 0) return;