Skip to content

Commit

Permalink
Merge pull request #15 from hubot-scripts/enhance-test-suite
Browse files Browse the repository at this point in the history
Enhance the test suite
  • Loading branch information
stephenyeargin authored Jun 30, 2018
2 parents c09aeea + 99445b6 commit 5abdd8d
Show file tree
Hide file tree
Showing 9 changed files with 4,717 additions and 92 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
language: node_js
node_js:
- "8"
- "6"
sudo: false
notifications:
email: false
email: false
node_js:
- "10" # stable
- "8" # LTS
- "6" # maintenance
cache:
directories:
- node_modules
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports = function(grunt) {
release: {
options: {
tagName: 'v<%= version %>',
commitMessage: 'Prepared to release <%= version %>.'
commitMessage: 'Prepared to release <%= version %>.',
additionalFiles: ['package-lock.json']
}
},
watch: {
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# hubot-youtube

A hubot script for searching YouTube
[![npm version](https://badge.fury.io/js/hubot-youtube.svg)](http://badge.fury.io/js/hubot-youtube) [![Build Status](https://travis-ci.org/hubot-scripts/hubot-youtube.svg?branch=master)](https://travis-ci.org/hubot-scripts/hubot-youtube)

See [`src/youtube.coffee`](src/youtube.coffee) for full documentation.
A Hubot script for searching YouTube.

## Installation

In hubot project repo, run:
In the Hubot project repo, run:

`npm install hubot-youtube --save`

Expand Down Expand Up @@ -38,18 +38,20 @@ _[Learn more](https://developers.google.com/console/help/new/?hl=en_US#generatin

### 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`.
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
If you want Hubot to listen every messages (without mentioning the bot) on public channel, set `HUBOT_YOUTUBE_HEAR`.

```
export HUBOT_YOUTUBE_HEAR=true
```

## Sample Interaction

```
Expand Down
Loading

0 comments on commit 5abdd8d

Please sign in to comment.