MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getWinnerStatusIcon

Function getWinnerStatusIcon

lottery/lottery.ts:500–511  ·  view source on GitHub ↗
(status: string)

Source from the content-addressed store, hash-verified

498 return "❌";
499 default:
500 return "❓";
501 }
502}
503
504function expireOldClaims(): number {
505 if (!db) return 0;
506
507 const stmt = db.prepare(`
508 UPDATE lottery_winners
509 SET status = ?
510 WHERE status = ? AND expires_at < ?
511 `);
512 const result = stmt.run(PrizeStatus.EXPIRED, PrizeStatus.PENDING, Date.now());
513 return result.changes;
514}

Callers 2

performLotteryDrawFunction · 0.85
lotteryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected