hubot-url-title
Returns the title when a link is posted.
Installation
Install the module:
npm install --save hubot-url-title
(this will update your package.json
).
Then add hubot-url-title to external-scripts.json
:
["hubot-url-title"]
Configuration
Regular expression used to exclude URLs
HUBOT_URL_TITLE_IGNORE_URLS
If you use HipChat, it's useful to ignore sites already supported by HipChat:
HUBOT_URL_TITLE_IGNORE_URLS="github.com|twitter.com|imgur.com|youtube.com|spotify.com|instagram.com"
Comma-separated list of users to ignore
HUBOT_URL_TITLE_IGNORE_USERS
Set the Accept-Language
header
HUBOT_URL_TITLE_ACCEPT_LANGUAGE="sv-SE"
If present, uses this value in the HTTP Accept-Language
header, when fetching the title.
Maximum length of title to display
HUBOT_URL_TITLE_MAX_LEN="50"
If present, uses this value to limit the length of the title displayed in chat. Default: no limit.
Development
Install dependencies
npm install
Run tests
npm test
Release workflow
git ci -m 'new cool feature'
git ci -m 'new nice feature'
npm version [<newversion> | major | minor | patch]
git push
git push --tags
npm publish .
Update the changelog:
github_changelog_generator