npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hubot-yelp

v0.2.1

Published

Enables hubot to suggest places for lunchtime. Powered by Yelp.

Downloads

3

Readme

hubot-yelp

Enables hubot to suggest places for lunchtime.

See src/lunchtime.coffee for full documentation.

Build and Static Analysis

Build Status Codacy Badge

Installation

In hubot project repo, run:

npm install hubot-yelp --save

Then add hubot-yelp to your external-scripts.json:

[
  "hubot-yelp"
]

Configuration

The following configuration is required in order to run the yelp script:

HUBOT_YELP_APP_ID        # The Yelp API application ID
HUBOT_YELP_APP_SECRET    # The Yelp API application secret

These should be configured using the API keys given to you when you sign up for a Yelp Developer API account.

The following configurations are optional:

HUBOT_YELP_DEFAULT_LOCATION   # The default location that should be used
HUBOT_YELP_DEFAULT_CATEGORY   # The default category that should be used
HUBOT_YELP_DEFAULT_LANG       # The default locale that should be used

If a location is not specified, the script is hard-coded to use Kansas City, MO as the default location. If no default category is specified, no category will be used unless specified by the user. If a locale is not specified, the script is hard-coded to use en_US as the default locale.

To see if a locale that you need is supported, check Yelp Fusion's list of supported locales.

Sample Interaction

The hubot-yelp script will allow your hubot to look up different kinds of food for you. By using hubot lunchtime, hubot will find a random place to eat using the default location:

<You> hubot lunchtime
<hubot> Give this place a shot:
<hubot> Novel Restaurant
<hubot> Yelp rating: 4.5
<hubot> Total reviews: 133
<hubot> http://www.yelp.com/biz/novel-restaurant-kansas-city

This script makes it possible to specify any location to find food. Type hubot lunchtime thats to call the script, then specify a category of food:

<You>hubot lunchtime thats bbq
<hubot> Give this place a shot:
<hubot> BRGR Kitchen + Bar
<hubot> Yelp rating: 4
<hubot> Total reviews: 165
<hubot> http://www.yelp.com/biz/brgr-kitchen-bar-kansas-city

The lunchtime script will randomly select a place that matches the category you specified, and print out the name of the place, the rating out of 5 on Yelp, how many reviews the place has been given by Yelp users, and a link to the Yelp website containing reviews, directions, hours of operation, and more.

If you'd rather not specify a category and would rather find a place near a certain location, you can specify that by typing hubot lunchtime near and specifying a location:

<You> hubot lunchtime near Las Vegas, NV
<hubot> Give this place a shot:
<hubot> Fountains of Bellagio
<hubot> Yelp rating: 4.5
<hubot> Total reviews: 940
<hubot> http://www.yelp.com/biz/fountains-of-bellagio-las-vegas

The script also allows you to specify a place and a category by typing hubot lunchtime near <place> thats <category>:

<You> hubot lunchtime near 99206 thats seafood
<hubot> Give this place a shot:
<hubot> Ivar's Seafood Bars
<hubot> Yelp rating: 3
<hubot> Total reviews: 1
<hubot> http://www.yelp.com/biz/ivars-seafood-bars-spokane

Powered by

YelpV3 by danieljin

Yelp

CoffeeScript

Hubot