luisobo / secret-santa

Secret Santa generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Secret Santa CLI

Create a random Secret Santa and generate One Time Secrets for the participants

Usage

  1. Create a One Time Secret account and obtain the API key from the Account page
  2. $ ONE_TIME_SECRET_USERNAME=Your_OTS_username ONE_TIME_SECRET_API_KEY=Your_OTS_api_key ./secretsanta.rb Joe Jane Bob Anna Philip

The output will look like this:

Secret for Joe: https://onetimesecret.com/secret/pz5hm93y8nc34i4scyy24asdfasdfm3h
Secret for Jane: https://onetimesecret.com/secret/laskjdlk3jd098dn3fasp239n3fnqw2
Secret for Bob: https://onetimesecret.com/secret/hhs9s923j30jdi2j094jf923p2u0j3fa
Secret for Anna: https://onetimesecret.com/secret/jankpajha99j2pe11j1jhj1lkdhd83f
Secret for Philip: https://onetimesecret.com/secret/aj2la92jhf9a2ap0saijd972323fa

Send that each link to each friend over your favorite medium

Contributions

  1. Fork this repo
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create new Pull Request

License

WTFPL. See LICENSE

About

Secret Santa generator

License:Do What The F*ck You Want To Public License


Languages

Language:Ruby 100.0%