GithubHelp home page GithubHelp logo

rlugojr / hubot-youtube Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hubot-archive/hubot-youtube

0.0 2.0 0.0 20 KB

A hubot script for searching YouTube

JavaScript 21.77% CoffeeScript 68.14% Shell 10.09%

hubot-youtube's Introduction

hubot-youtube

A hubot script for searching YouTube

See src/youtube.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-youtube --save

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

[
  "hubot-youtube"
]

Obtain a Google Developer Console token

Enable the "YouTube Data API v3" permission from the API menu.

Enable v3

Create a "Public" token rather than the OAuth credentials for this particular implementation.

Get Public Token

Copy your token to the HUBOT_YOUTUBE_API_KEY environment variable.

export HUBOT_YOUTUBE_API_KEY=<your token>

Learn more about how to generate Google credentials.

Optionally set flag for deterministic searching

If you want hubot to only return the most relevant result rather than randomly one of the top 15 results, set the environment variable HUBOT_YOUTUBE_DETERMINISTIC_RESULTS.

export HUBOT_YOUTUBE_DETERMINISTIC_RESULTS=true

Optionally set flag for listening on public channel

If you want hubot to listen every messages (without mentioning him) on public channel

export HUBOT_YOUTUBE_HEAR=true

Sample Interaction

user1> hubot youtube no no no cat remix
hubot> http://www.youtube.com/watch?v=z7OJ3vDqyw8&feature=youtube_gdata

hubot-youtube's People

Contributors

edznux avatar stephenyeargin avatar technicalpickles avatar thomasrussellmurphy avatar

Watchers

 avatar  avatar

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.