GithubHelp home page GithubHelp logo

corgi's Introduction

Corgi

Slackbot for reminding team members to update their timesheets.

Setup

Prepare Slack application

You need to configure a slack application. Create a new slack app, then head to Features / Slash commands section and add commands: /subscribe ,/unsubscribe. These need to be paired with /subscribe and /unsubscribe API endpoints of this project.

Then, you need to acquire two tokens:

  1. Go to Install App settings - this is your token for SLACK_TOKEN env.
  2. Go to Basic information settings and find Verification Token. This is your SLACK_VERIFICATION_TOKEN variable.

Run the app

Use make docker to build a docker image with the app. Then you can run the image and bind ports.

Local Development

Communication with Slack app

To develop app locally, I recommend creating your own Slack namespace to communicate with slash commands and to use Ngrok to expose locally run app. Run ngrok http <port> to port-forward the app, then use the generated URL to bind slash commands on api.slack,.com

Testing

Run make lint and make test to check code.

Usage

After app is connected to slack, call Corgi with /subscribe daily @ 17:15 to get daily notifications. You can also susbscribe for weekly notifications: /subscribe weekly @ SAT 9

Todo, ideas

  • Swap slash commands for mentions
  • Commands for admin-tier team members to notify members immediately
  • PostgreSQL instead of sqlite (or both)
  • Endpoint for lookup of what interval I entered
  • Support for monthly intervals (maybe such a big interval misses the point of reminding)
  • Add ability for admin-tier team members to create notifications for members (with side effect of notifying them)
  • Low priority: Keep history of changes of subscriptions
  • Move representation out of tempo package (also rename message generator then)
  • Cache existing (jira accountID, email) pairs

corgi's People

Contributors

kniepok avatar

Watchers

James Cloos avatar  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.