2025-07-16 22:39:38 -07:00
2025-07-16 22:39:38 -07:00

NCD Secret Santa

You need to install aiohttp from your repos or make venv and install it via pip.

Before you run it, modify the BASE_URL var in the main file to wherever this will be publically accessable, for making the invite code urls.

When you first run it, it will make a invite_urls.txt file with 500 invite urls. They're one-time only and are bound to a user's cookie, so they can't clear their cache or browse private mode or use a different device for checking later if they have drawn another person yet. You are manually responsible for only giving out good invite codes.

There are two deadlines, one for registering, and the other for drawing. Those are configurable in the top of the file, but default to nov 15 and dec 15 respectively.

If it's past the drawing deadline, a log file should be created with a list of those who signed up but haven't drawn someone to send a gift to. You are responsible for contacting them and reminding them, and if they cancel, tell the person who drew them that they are being reassigned.

To reassign, just take someone out of the pool.json and give the address to the person.

If there's some kind of weird bug and everyone needs to try again, persistant.json keeps a temporary record of everyone who signed up, but it will be automatically deleted after Christmas.

Description
Anonymous secret santa web site
Readme 46 KiB
Languages
Python 100%