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