MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / isUserRateLimited

Function isUserRateLimited

src/services/giveawayService.js:252–258  ·  view source on GitHub ↗
(userId, giveawayId)

Source from the content-addressed store, hash-verified

250}
251
252export function isUserRateLimited(userId, giveawayId) {
253 const status = getRateLimitStatus(
254 getGiveawayInteractionKey(userId, giveawayId),
255 GIVEAWAY_INTERACTION_COOLDOWN,
256 );
257 return status.attempts >= 1 && status.remaining > 0;
258}
259
260export async function recordUserInteraction(userId, giveawayId) {
261 await checkRateLimit(

Callers 1

executeFunction · 0.90

Calls 2

getRateLimitStatusFunction · 0.90

Tested by

no test coverage detected