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.
@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.
@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.
go test ./... -cover
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
cf push
See CONTRIBUTING for additional information.
- Main branch:
master
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.