Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

18F/angrytock

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages