Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including hubot-chromecast-youtube with all npm packages installed. Try it out:

var hubotChromecastYoutube = require("hubot-chromecast-youtube")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

hubot-chromecast-youtube v0.0.1

Starts a YouTube video with Hubot

Starts a YouTube video with Hubot

Installation

Add the package hubot-chromecast-youtube as dependencies in your Hubot package.json file by running the command:

npm install hubot-chromecast-youtube --save

To enable the script, add the hubot-chromecast-youtube entry to the external-scripts.json file (you may need to create this file, if it is not present or if you upgraded from Hubot < 2.4).

["hubot-chromecast-youtube"]

Commands

Use

hubot cast <youtube-url>

To start a youtube video

Eg

hubot cast http://www.youtube.com/watch?v=y6Sxv-sUYtM

Quick installation of Hubot

To quickly install hubot, run:

sudo npm install -g hubot coffee-script
hubot --create mixbot

(mixbot is the name of our hubot)

To test it locally, run

bin/hubot --name mixbot

Type

mixbot help

To get an idea of all the available commands

To run it on Campfire, run:

HUBOT_CAMPFIRE_ACCOUNT="youraccount" HUBOT_CAMPFIRE_ROOMS="474911,537247" HUBOT_CAMPFIRE_TOKEN="sometoken" bin/hubot --name mixbot -a campfire

More on the installation of Hubot can be found here: https://github.com/github/hubot/tree/master/docs

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free