Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Hubot adapter for Gitter

License

NotificationsYou must be signed in to change notification settings

huafu/hubot-gitter2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Improved Hubot adapter for Gitter


There was already one adapterhubot-gitter but after tryingto fix many missing things from it, I decided to write one from scratch.

Gitter chat

At the time this is written, here is the advantages of this one:

  • namespaced environment variables for the configuration
  • handlingrobot.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

  • installHubot andCoffeeScript:npm install -g hubot coffee-script
  • create your bot and install its dependencies:
npm install -g yo generator-hubotmkdir -p my-botyo hubot
  • savehubot-gitter2 as dependency:npm install --save hubot-gitter2
  • start the bot using the right adapter:HUBOT_GITTER2_TOKEN=<your token> ./bin/hubot -a gitter2 --name <your bot name>
    • HUBOT_GITTER2_TOKEN: get your personal tokenthere 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.

[8]ページ先頭

©2009-2025 Movatter.jp