Giter VIP home page Giter VIP logo

mealbot's Introduction

Randomly group people together to get a meal together, and send an email to everyone to tell them what their group is!

  1. As described here, set up a Google Cloud project, enable the Gmail API, and create credentials for a desktop application. Store the credentials JSON file as client_secret.json in your working directory as you run MealBot.py. (Alternatively, just get a JSON file directly from Alex.)

  2. You will also need to use pip to install a couple of modules that may not already be installed on your machine:

pip install --upgrade google-api-python-client
pip install --upgrade oauth2client
  1. Set up PersonList.txt. This is a tab-delimited csv file with the columns Name and Email. (Delimiting it by tabs means that you can copy-paste directly from a Google sheet into a text file, and it will work.) MealBot will randomly group these people together.

  2. Set up Message.txt. This is the body of the email that will be sent to each person in PersonList.txt. The string {GroupList} must appear exactly once in the file; it will be replaced with the list of people that were randomly grouped together.

  3. Run MealBot.py. There are a number of options (run MealBot.py -h to see them), but if you don't change any file names then they probably won't be needed.

mealbot's People

Contributors

aschurman avatar

Watchers

 avatar

Forkers

joshuachough

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.