this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: Update delay for FurAffinity links to 10s and adjust cooldown for other links to 4s

+4 -4
+4 -4
bot/telegrambot/commands/linkHandler.js
··· 274 274 const [item] = this.queue.splice(faIndex, 1); 275 275 this.furaffinityActive = true; 276 276 this.activeCount++; 277 - console.log(`[AsyncLinkQueue] Processing FurAffinity link: ${item.url} (3s delay before next FA link allowed)`); 277 + console.log(`[AsyncLinkQueue] Processing FurAffinity link: ${item.url} (10s delay before next FA link allowed)`); 278 278 this.processFn(item) 279 279 .catch(() => {}) 280 280 .finally(() => { 281 281 this.activeCount--; 282 - this.furaffinityActive = false; 283 282 setTimeout(() => { 283 + this.furaffinityActive = false; 284 284 console.log('[AsyncLinkQueue] FurAffinity delay complete, next link can be processed.'); 285 285 this.next(); 286 - }, 10000); 286 + }, 10000); // 10s enforced delay after FA link 287 287 }); 288 288 return; 289 289 } ··· 297 297 .catch(() => {}) 298 298 .finally(() => { 299 299 this.activeCount--; 300 - setTimeout(() => this.next(), 5000); // 4s cooldown for non-FurAffinity links 300 + setTimeout(() => this.next(), 4000); // 4s cooldown for non-FurAffinity links 301 301 }); 302 302 } 303 303 }