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

Callers 2

performLotteryDrawFunction · 0.85
lotteryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected