hubot-wikipedia-lang
Version:
A Hubot script for search articles in Wikipedia
33 lines (21 loc) • 1.72 kB
Markdown
# hubot-wikipedia-lang
[](https://www.npmjs.com/package/hubot-wikipedia-lang)
[](https://www.npmjs.com/package/hubot-wikipedia-lang)
[](https://travis-ci.org/lgaticaq/hubot-wikipedia-lang)
[](https://coveralls.io/github/lgaticaq/hubot-wikipedia-lang?branch=master)
[](https://codeclimate.com/github/lgaticaq/hubot-wikipedia-lang)
[](https://david-dm.org/lgaticaq/hubot-wikipedia-lang#info=dependencies)
[](https://david-dm.org/lgaticaq/hubot-wikipedia-lang#info=devDependencies)
> A Hubot script for search articles in Wikipedia
## Install
```bash
npm i -S hubot-wikipedia-lang
```
Add `["hubot-wikipedia-lang"]` in `external-scripts.json`.
Set optional `HUBOT_WIKIPEDIA_LANG` (default en) in environment variable to change default language.
## Example
`hubot wiki search <query>` -> `Get the first 5 articles`
`hubot wiki summary <article>` -> `Get a one-line description`
`hubot wiki language <language>` -> `Set a language for search`
## License
[MIT](https://tldrlegal.com/license/mit-license)