From c01eb3d8a31d78a25c02f2640eae8995e84be96c Mon Sep 17 00:00:00 2001 From: Lluis Date: Wed, 15 May 2024 11:20:16 +0200 Subject: [PATCH] low cooldown for TF captures --- lib/messenger.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/messenger.js b/lib/messenger.js index 77e4eda..35ebc5e 100644 --- a/lib/messenger.js +++ b/lib/messenger.js @@ -166,15 +166,19 @@ class Messenger { if (textSplit.length > 0 && inputParser.isAskingForTFScreenshot(textSplit[0]) && await handlers.tempsDeFlors.hasActiveSpot()) { if (!this.cooldown.screenshotTF) { this.cooldown.screenshotTF = true + this.cooldown.screenshot = true setTimeout(() => { this.cooldown.screenshotTF = false - }, 10000) + }, 2000) + setTimeout(() => { + this.cooldown.screenshot = false + }, 30000) return handlers.tempsDeFlors.captureScreenshot(target, textSplit[1], this.bot, context['display-name'], context['room-id']) } } if (textSplit.length > 0 && inputParser.isAskingForTakeScreenshot(textSplit[0])){ - if (!this.cooldown.screenshot && !this.cooldown.screenshotTF) { + if (!this.cooldown.screenshot) { this.cooldown.screenshot = true setTimeout(() => { this.cooldown.screenshot = false