Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

About

A Lita handler that displays a tweet for a given Twitter URL or username.

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.