hubot-twitter-userstream

0.0.3 • Public • Published

hubot-twitter-userstream

hubot-twitter-userstream is an adapter for Hubot that allows you to use the hubot with Twitter on user TL.

It differs from hubot-twitter...

  • It can watch user timeline.
  • It can receive and send direct message.
  • It can follow and remove users.
  • It can receive some events(favorited, followed, ...).

Installation

$ hubot --create myhubot
$ cd myhubot
$ npm install hubot-twitter-userstream --save && npm install

Usage

At first, you will need to set some API keys.

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

Messages

Properties of received message. { id: <status_id> user: {id: <user_id>, name: <screen_name>, room: <"Twitter" or "TwitterDirectMessage"> }, text: data: }

Events

favorited - {user: , tweet: } unfavorited - {user: , tweet: } The tweet is equal to target_object in https://dev.twitter.com/docs/streaming-apis/messages#Events_event .

followed - {user: } unfollowed - {user: }

Copyright

Copyright(c) 2014 hoo89 http://hoo89.hatenablog.com/ hoo89@me.com

This source licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i hubot-twitter-userstream

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • hoo89