Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Twitter adapter for Hubot
CoffeeScript
branch: @mentions_only

This branch is 1 commit ahead, 25 commits behind MathildeLemee:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
README
README.md
package.json

README.md

Hubot Twitter Adapter

Description

This is the Twitter adapter for hubot that allows you to send an tweet to your Hubot and he will send an tweet back with the response.

Installation

  • Add hubot-twitter as a dependency in your hubot's package.json
  • Install dependencies with npm install
  • Run hubot with bin/hubot -a twitter -n the_name_of_the_twitter_bot_account

Note if running on Heroku

You will need to change the process type from app to web in the Procfile.

Usage

You will need to set some environment variables to use this adapter.

Heroku

heroku config:add HUBOT_TWITTER_KEY="key" HUBOT_TWITTER_SECRET="secret" HUBOT_TWITTER_TOKEN="token" HUBOT_TWITTER_TOKEN_SECRET="secret"

Non-Heroku environment variables

export HUBOT_TWITTER_KEY="key" export HUBOT_TWITTER_SECRET="secret" export HUBOT_TWITTER_TOKEN="token" export HUBOT_TWITTER_TOKEN_SECRET="secret"

Then you will need to set the HTTP endpoint on Twilio to point to your server and make sure the request type is set to GET.

Contribute

Just send pull request if needed or fill an issue !

Copyright

Copyright © Mathilde Lemee. See LICENSE for details.

Something went wrong with that request. Please try again.