Git Product home page Git Product logo

angrytock's Introduction

AngryTock

Go Report Card

A slack bot for "reminding" Tock users who are late filling out their timecards.

This bot is dependent on Tock. Please refer to the appropriate documentation for both projects.

Bot Master User Commands

@botname: slap users! : Reminds users to fill in their time sheets one time. @botname: bother users! : Searches for users writing in Slack and tells them to fill in their time sheets. Will only bother user 1 time and is only active for 30 minutes. @botname: who is late? : Returns a list of users who are late.

Regular interactions

@botname: status : Will check the Tock API and tell the user if they have filled out their timesheet. @botname: say something : Will respond to the use with a message about time.

Running tests

go test ./... -cover

Deployment

Env Variables

Set the following env variables

export SLACK_KEY="<<Slack Key>>"
export TOCK_URL="https://tock.18f.gov"
export USER_TOCK_URL="https://tock.18f.gov/employees"
export MASTER_LIST=<<EMAIL>>,<<EMAIL>>
export PORT=5000 # will be set automatically by Cloud Foundry

Deploying to Cloud Foundry

cf push

Contributing

See CONTRIBUTING for additional information.

Branch flow

  • Main branch: master

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

angrytock's People

Contributors

geramirez avatar rogeruiz avatar ccostino avatar emileighoutlaw avatar konklone avatar lindsayyoung avatar sharms avatar annalee avatar toolness 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.