tock-bot

command module
v0.0.0-...-989d8f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2018 License: CC0-1.0 Imports: 5 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package bot provides an interface accessing the tock and slack apis The primary purpose of this packages is to collect users from tock who have not filled out thier time forms and use the slack api to message them.
Package bot provides an interface accessing the tock and slack apis The primary purpose of this packages is to collect users from tock who have not filled out thier time forms and use the slack api to message them.
Package safeDict contains the structs and methods for creates a thread saft map
Package safeDict contains the structs and methods for creates a thread saft map

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址