Skip to content

Bot to lookup licence plates in images posted in a Slack channel

Notifications You must be signed in to change notification settings

abij/car_lookup_slackbot

Repository files navigation

Slack bot: Car Lookup

Build Status

Slackbot to scan images for licence plates and report the known car details. The car owners are fetched from a csv-file on a fileshare.

slack-bot-car-lookup

Hosting

  • Create an app in api.slack.com
    • configure /car slack commmand
    • configure event-api on file_created / file_shared events in channel-scope
  • Host as a docker container in the cloud, or use nGrok while testing.
    • Pass environment variables from Slack and/or opendata.rdw.nl
      • ACTIVE_TOKEN OAuth Bot User OAuth Access Token (xoxb-***)
        • CLIENT_ID + CLIENT_SECRET and perform OAuth by '(Re)install app' in Slack API.
      • RWD_APPTOKEN (optional) the opendata.rdw.nl api-token

Components:

Testing locally

Only if Flask is running in debug mode:

TODO's:

  • Make the bot Workspace independend: Its now for a single Workspace (Xebia) using one fileshare with a single csv-file.
  • Make API calls in parallel to reduce total time for a request. (A slack command must answer in 3 sec.)
  • Security:
    • Limit the incoming traffic from Slack or validate event hashes.
    • Add an TSL-certificate using letsencrypt
    • Pin Slack SSL certification.

About

Bot to lookup licence plates in images posted in a Slack channel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages