evansobkowicz / ithaca-directory

Slack Integration for Ithaca College's Directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ithaca College Directory Slack Integration

This simple Ruby/Sinatra script allows Slack Slash Command integration with the Ithaca College Directory.

The script parses the HTML of the directory page, and formats the results for Slack.

Endpoint

GET /search/?text=NAME

Response

{
  "text": "1 results found.",
  "attachments": [
    {
      "title": "Name",
      "text": "Information",
      "color": "#004080",
      "mrkdwn_in": ["text"]
    }
  ]
}

Feel free to use this script, file issues, or contribute!

About

Slack Integration for Ithaca College's Directory


Languages

Language:Ruby 100.0%