Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MathildeLemee/hubot-twitter
Twitter adapter for Hubot
https://github.com/MathildeLemee/hubot-twitter
Last synced: about 2 months ago
JSON representation
Twitter adapter for Hubot
- Host: GitHub
- URL: https://github.com/MathildeLemee/hubot-twitter
- Owner: MathildeLemee
- License: mit
- Created: 2011-11-22T20:43:38.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-06-03T13:13:04.000Z (over 9 years ago)
- Last Synced: 2024-10-13T01:12:44.099Z (2 months ago)
- Language: CoffeeScript
- Size: 249 KB
- Stars: 86
- Watchers: 8
- Forks: 40
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hubot Twitter Adapter
## Description
This is the [Twitter](http://twitter.com) 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"
% heroku config:add HUBOT_TWITTER_SECRET="secret"
% heroku config:add HUBOT_TWITTER_TOKEN="token"
% heroku config:add 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 Twitter 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.