From e49eacbd2ce208281a1cb4fc6059d4147bbbf4b9 Mon Sep 17 00:00:00 2001 From: Lluis Date: Wed, 15 May 2024 11:27:25 +0200 Subject: [PATCH] 3 seconds coldown for screenshots3 seconds coldown for screenshots3 seconds coldown for screenshots --- lib/messenger.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/messenger.js b/lib/messenger.js index 35ebc5e..6a5cbce 100644 --- a/lib/messenger.js +++ b/lib/messenger.js @@ -169,10 +169,10 @@ class Messenger { this.cooldown.screenshot = true setTimeout(() => { this.cooldown.screenshotTF = false - }, 2000) + }, 3000) setTimeout(() => { this.cooldown.screenshot = false - }, 30000) + }, 3000) return handlers.tempsDeFlors.captureScreenshot(target, textSplit[1], this.bot, context['display-name'], context['room-id']) } } @@ -182,7 +182,7 @@ class Messenger { this.cooldown.screenshot = true setTimeout(() => { this.cooldown.screenshot = false - }, 30000) + }, 3000) return handlers.stream.captureScreenshot(target, this.bot, this.notifier.bot, context['display-name'], context['room-id']) } }