Git Product home page Git Product logo

ovoslackrandomcoffee's Introduction

OVO Slack RandomCoffee app

This is a fork of: tjansson60/pyslackrandomcoffee

A very simple random coffee bot for slack that takes all the members in a channel and randomly matches them up for a coffee date and writes the matches back in the same channel.

Could be called weekly or daily from a scheduler or manually. This version is intended to be deployed on AWS Lambda and triggered via API Gateway.

The bot will look back in the history of the channel and find past matches and use these to try to generate matches not seen before. By default, it looks back at the last 28 days of channel history.

The slack app RandomCoffees did the exact same thing, but is no longer available and the alternatives cost $$. So here is a simple solution:

Setup

First, set up a Python virtual environment and activate it:

python3 -m venv ovoslackrandomcoffee
source ovoslackrandomcoffee/bin/activate

You’ll need a Slack API token (see https://api.slack.com/apps/) set in the environment as SLACK_API_TOKEN with appropriate scopes such as:

  • channel:history
  • channels:read
  • chat:write
  • users:read

This bot is intended to be deployed to AWS Lambda and triggered via API Gateway.

ovoslackrandomcoffee's People

Contributors

mbrignall avatar tjansson60 avatar

Watchers

 avatar

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.