Code Monkey home page Code Monkey logo

hubot-twitterstream's Introduction

hubot-twitterstream

A Hubot script using the Twitter streaming API to track tweets from keywords/users and will publish them in realtime in the room subscription has been created.

Install

  • Install via npm
npm install hubot-twitterstream --save
  • Add the following code in your external-scripts.json file.
["hubot-twitterstream"]
export HUBOT_TWITTERSTREAM_CONSUMER_KEY=XXXXXXXXXXXXXXX
export HUBOT_TWITTERSTREAM_CONSUMER_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export HUBOT_TWITTERSTREAM_ACCESS_TOKEN_KEY=XXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
export HUBOT_TWITTERSTREAM_ACCESS_TOKEN_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  • Run hubot
bin/hubot

Usage

Assuming you're using this script wity hubot-auth, so first you need to assign proper role to your username to access twitterbot commands

<your_bot_name> <your_user_name> has twitterbot role

Subscribe to keywords (launch command multiple times for multiple keywords):

<your_bot_name> twitterstream track github

Unsubscribe to keywords:

<your_bot_name> twitterstream untrack github

Subscribe to someone tweets:

<your_bot_name> twitterstream follow nodejs
// will listen to tweets from @nodejs

Unsubscribe from someone tweets:

<your_bot_name> twitterstream unfollow nodejs

List subscriptions in current room:

<your_bot_name> twitterstream list

Clear subscriptions in current room:

<your_bot_name> twitterstream clear

Note: The subscriptions are persisted in hubot brain so they will be restored on restart.

Donate

I'm working on this script to keep it update and functional as much as I can,
So feel free to buy me a cup of coffee :)

ETH: 0x69756376573a4edcae8c25fc6571dafa5c791838

hubot-twitterstream's People

Contributors

chamerling avatar hirakiuc avatar mdtanrikulu avatar mondoreale avatar neufeldtech avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.