-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Probably the biggest hurdle to using this program is configuring an smtp server to send the assignments out anonymously. Better would be to produce assignment files that the organizer could just email or IM to participants.
Here's a potential plan:
-
Modify the
sinterbotCommand-Line ToolIn
bin/sinterbot.py:- Remove the
sendsubcommand and its associatedsend()function. - Add a new
exportsubcommand with anexport()function. This function will:- Parse the main config file.
- Create a new directory (e.g.,
assignments/). - Iterate through the assignments, writing each Santa's assignment into a separate text file within that directory (e.g.,
assignments/For_Santa_A.txt). - Print a message to the user indicating where the files were saved.
- Update the success message in the
derange()function to recommend using the newexportcommand.
- Remove the
-
Create a Separate
sinterbot-sendmailUtility Script- Create a new executable script, for example,
bin/sinterbot-sendmail.py. - Move the code from the original
send()function (including its argument parsing logic) frombin/sinterbot.pyinto this new script. - This script will be a standalone tool that takes the main config path and the
smtp.confpath as arguments. It will perform the email sending functionality exactly as the old send command did.
- Create a new executable script, for example,
-
Update Documentation
In
README.md:- Modify the main "Usage" section to describe the new, primary workflow:
derangefollowed byexport. - Add a new section, perhaps titled "Optional: Emailing Assignments," that explains how to use the separate
sinterbot-sendmail.pyscript with ansmtp.conffile for users who want to send emails directly.
- Modify the main "Usage" section to describe the new, primary workflow: