GithubHelp home page GithubHelp logo

restaurant-bot's Introduction

Restaurant Bot for Slack

A simple web app to create a slack integration to find somewhere to eat lunch. This is currently under development.

Purpose

This Slack slash command will allow a Slack user to type /lunch_idea in to Slack to get a random restaurant within a mile of an address provided in ENV['ADDRESS'].

In Slack:

Example of Lunch Idea

This command uses the Yelp api to identify possible restaurants. Because this is a fairly simple project with only one route with no views, I opted to use the more lightweight Sinatra framework rather than the more complex Rails.

Setup

To setup this slack command:

  1. Visit https://my.slack.com/services/new/slash-commands
  2. Choose a name for the slack command (it must be one word) like /lunch_idea
  3. Under integration settings, add https://obscure-eyrie-21980.herokuapp.com/ for the URL (this is where the code to make this run is hosted)
  4. Change the method to "GET"
  5. Modify the rest of the fields to your liking.
  6. Click "Save Integration"

Then you should be setup to run the slash command and get your lunch idea.

The slack integration will return a restaurant (only ones that are open), and its rating, plus some other images required for using the Yelp API.

Sample Slack Response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.