@monaco-ex/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: <body of message>,
	data: <raw object of tweet or direct message>
}

Events

favorited - {user: <user object of favorited user>, tweet: <favorited tweet>}
unfavorited - {user: <user object of unfavorited user>, tweet: <unfavorited tweet>}
followed - {user: <user object of followed user>}
unfollowed - {user: <user object of followed 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 @monaco-ex/hubot-twitter-userstream

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • cryptcoin-junkey