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

Function getLotteryParticipants

lottery/lottery.ts:404–412  ·  view source on GitHub ↗
(lotteryId: number)

Source from the content-addressed store, hash-verified

402 `);
403 return stmt.all(lotteryId);
404}
405
406function getLotteryWinners(lotteryId: number): any[] {
407 if (!db) return [];
408
409 const stmt = db.prepare(`
410 SELECT w.*, p.username, p.first_name, p.last_name
411 FROM lottery_winners w
412 LEFT JOIN lottery_participants p ON w.user_id = p.user_id AND w.lottery_id = p.lottery_id
413 WHERE w.lottery_id = ?
414 ORDER BY w.assigned_at
415 `);

Callers 3

performLotteryDrawFunction · 0.85
lotteryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected