Giter Site home page Giter Site logo

slack-tea-bot's Introduction

Codeship status for Slack-Tea-Bot

Slack Tea Bot

A tea bot for Slack.

Available Commands

  1. register - Registers the tea preference of a user (@teabot register green tea)
  2. brew - Initiates the brewing process (users have 120 seconds to respond) and takes an optional argument to limit the number of cups to brew (@teabot brew or @teabot brew 5)
  3. me - Reply with @teabot me when someone has offered to brew
  4. leaderboard - Displays the current leaderboard based on tea cups brewed (@teabot leaderboard)
  5. stats - Displays the stats for all users (@teabot stats) or (@teabot stats @george) for a single user
  6. nominate - Nominate someone to brew tea. You must brew tea more than %s times to use this (@teabot nominate @george)
  7. update_users -> Update teabot's user registry based on changes in your Slack team (@teabot update_users)

Teabot Preview

How to run the app

  • Go to Slack's App & Integrations > Manage > Custom Integrations and add a new Bot called teabot.
  • Create a virtualenv and load it.
  • On the repository's root type pip install -r requirements.txt.
  • Export your slack secret key export SLACK_WEBHOOK_SECRET="mysecretslackkey".
  • Initialize the database python init_db.py. You can configure the path to the sqlite DB in conf.py.
  • Start the app python src/app.py.

How to run tests locally

  • Load your virtualenv.
  • Install test required pip packages pip install -r requirements_test.txt.
  • From the repository's root type python -m unittest discover.

slack-tea-bot's People

Contributors

davarisg avatar millar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

slack-tea-bot's Issues

Update slack users fixes

Make sure update slack users runs periodically and raise an error if a user's id is not found in the database.

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.