https://github.com/huafu/hubot-gitter2
Hubot adapter for Gitter
https://github.com/huafu/hubot-gitter2
hubot hubot-adapters
Last synced: about 2 months ago
JSON representation
Hubot adapter for Gitter
- Host: GitHub
- URL: https://github.com/huafu/hubot-gitter2
- Owner: huafu
- License: mit
- Created: 2014-08-10T01:57:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T10:57:42.000Z (over 7 years ago)
- Last Synced: 2025-04-16T23:01:10.115Z (2 months ago)
- Topics: hubot, hubot-adapters
- Language: CoffeeScript
- Size: 207 KB
- Stars: 81
- Watchers: 9
- Forks: 44
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hubot-gitter2
=============### Improved Hubot adapter for Gitter
* * *
There was already one adapter [hubot-gitter](https://github.com/kcjpop/hubot-gitter) but after trying
to fix many missing things from it, I decided to write one from scratch.[](https://gitter.im/huafu/hubot-gitter2)
At the time this is written, here is the advantages of this one:
- namespaced environment variables for the configuration
- handling `robot.send room: 'room id or uri', 'my message'`
- gathering information from users in all rooms correctly
- not handling messages that the bot itself is sending## Installation
- install **Hubot** and **CoffeeScript**: `npm install -g hubot coffee-script`
- create your bot and install its dependencies:```
npm install -g yo generator-hubot
mkdir -p my-bot
yo hubot
```- save **hubot-gitter2** as dependency: `npm install --save hubot-gitter2`
- start the bot using the right adapter: `HUBOT_GITTER2_TOKEN= ./bin/hubot -a gitter2 --name `
- `HUBOT_GITTER2_TOKEN`: get your personal token [there](http://developer.gitter.im) after sign-in
- the bot will automatically listen on the rooms it has joined.## Troubleshooting
- If your bot is not responding to mentions, make sure hubot was started with the same `--name` parameter as its GitHub username.