mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 07:01:38 +01:00
reduce ghost whisper cooldown
This commit is contained in:
@@ -3,7 +3,7 @@ import { sendMessage } from "commands";
|
||||
import { buildTimeString } from "lib/dateManager";
|
||||
import { chatterEventSub, chatterApi, chatterId } from "main";
|
||||
|
||||
const WHISPERCOOLDOWN = 60 * 10; // 10 minutes
|
||||
const WHISPERCOOLDOWN = 60 * 5; // 5 minutes
|
||||
|
||||
chatterEventSub.onUserWhisperMessage(chatterId, async msg => {
|
||||
if (await redis.ttl(`user:${msg.senderUserId}:timeout`) < 0) return;
|
||||
|
||||
Reference in New Issue
Block a user