Git Product home page Git Product logo

facequiz's Introduction

FaceQuiz

You've just started at a new job, and if you're anything like me, it's going to be a huge struggle to learn everyone's name. Fear not! FaceQuiz helps you match faces to names from the comfort of Slack. Here's what it looks like: Image of Usage

You can add it to your Slack here but beware: this is a ridiculous, nowhere-near-production-ready hack. The main issue is that everything is stored in memory, so if the server dies, there goes FaceQuiz. I'm working on adding real database support, see todos below.

Getting it Running

First register a Slack application, then run the following:

pip install -r requirements.txt # virtualenv, hopefully
export CLIENT_ID="client id from slack"
export CLIENT_SECRET="client secret from slack"
export SECRET_KEY="a secret key for flask"
export REDIRECT_URI="a redirect url you gave to slack, I did https://facequiz.raphieps.com/oauth"
python app.py

The app runs on port 5000, but if you want to get fancy and forward from port 80, here's my nginx config:

server {
        listen 80;
        server_name facequiz.raphieps.com;
        location ~ ^/ {
                proxy_pass http://localhost:5000;
        }
}

Todos

As alluded to, this is ridiculously crappy right now. Here's what I'd like to add soon:

  • An actual database, instead of janky global variables
  • A better interface - it's tiresome to keep typing /facequiz
  • Filtering for people without profile pictures
  • Ability to do something like /facequiz #engineering and get quizzed only on people in that channel
  • General code cleanup
  • Make a nice landing page

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.