Skip to content

Using Twilio API, send each Santa their Santee's name directly to their phone. Supports no matches 1-way and 2-way.

License

Notifications You must be signed in to change notification settings

iHydra/SecretSantaSMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Secret Santa SMS

Using Twilio API, send each Santa their Santee's name directly to their phone. Supports no-match 1-way and 2-way.

SMS

No Match 1-Way

['Chris', 'Johnny']

Chris, the Santa, will not be given Johnny as their Santee. However, Johnny as a Santa can get Chris as a Santee. The purpose of this is to not get a repeat of a previous year(s) match.

No Match 2-Way

['Jordan', 'Johnny']

Jordan and Johnny are brothers, will not be given each other at all.

Configuration

SMS Python QuickStart https://www.twilio.com/docs/sms/quickstart/python

Register on Twilio, add funds to the wallet. Purchase a phone number, create Programmable SMS project. Account SID and Auth Token are required for this to function along with the phone number.

Update config.yml with participants, 1-way and 2-way blocks. Edit santa.py with the new new Account SID and auth_token and twilio_number. Line 114 has the SMS message, feel free to customize as you find fit.

Put random name in config.yml >> DONT-REPEAT and DONT-PAIR if you do not want to have any blocks. i.e. - NoName

Running

Depending on how Python is configured...

python3 santa.py --send OR python santa.py --send to actually send out the SMS

python3 santa.py OR python santa.py to test it locally and NOT send out the SMS

Credits

This code was derived from https://github.com/underbluewaters/secret-santa and modified to work with SMS (Twilio) and added the functionality of 1-way block.

About

Using Twilio API, send each Santa their Santee's name directly to their phone. Supports no matches 1-way and 2-way.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages