Giter Site home page Giter Site logo

lita-tweeta's Introduction

lita-tweeta

lita-tweeta is a handler for Lita that displays a tweet for a given Twitter URL or username.

Installation

Add lita-tweeta to your Lita instance's Gemfile:

gem "lita-tweeta"

Configuration

Twitter's API requires authentication via OAuth, so you'll need to register your application with Twitter.

Lita.configure do |config|
  config.handlers.tweeta.consumer_key = "foo"
  config.handlers.tweeta.consumer_secret = "bar"
  config.handlers.tweeta.access_token = "baz"
  config.handlers.tweeta.access_token_secret = "luhrmann"
end

Usage

To have Lita display a tweet, simply paste its URL into the chat channel:

<me> congratulations jimmy https://twitter.com/tristaneuan/status/463007122087616512
<lita> "Congratulations on 400 GitHub stars, @litachatbot and @jimmycuadra! #chatops #ruby https://t.co/mADTTu3M3N" --Tristan Chong, 2014-05-04

You can also retrieve a given user's latest tweet:

<me> @lita: tweet sfsiren
<lita> "This is a test. This is a test of the outdoor warning system. This is only a test." --SFSiren, 2015-05-05

License

MIT

lita-tweeta's People

Contributors

t33chong avatar

Watchers

 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.