Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 927 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 927 Bytes

TBA-Slack

Receives webhooks from the blue alliance about upcoming events and scores, and posts them to slack. Responds to the following events:

  • Upcoming Match Alert
  • Match Score Alert

Also responds to the following commands:

  • /tba score [team number]
  • /tba team [team number]
  • /tba match
  • /tba help

Setup

  1. Clone the repo into the document root for a webserver that supports PHP execution
  2. Make a slack app, add a slash command, and point it at the file respond_slack.php
  3. In auths.php, paste in your APIv3 key from the blue alliance, the webhook url setup in the bot settings for slack, and the slash command verification key from the bot settings for slack
  4. Add a tba webhook, subscribed to the events listed above, and pointing at the file respond_tba.php
  5. The most recent verification key sent by the blue alliance can be found in the file key.txt