No commit activity in last 3 years
No release in over 3 years
Cinch plugin that watches for new tweets from users.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0.0.4, ~> 0.0
~> 0.7
~> 10.1
~> 2.14

Runtime

>= 2.0.12, ~> 2
>= 1.1.2, ~> 1.1
>= 5.7.1, ~> 5.7
 Project Readme

Cinch::Plugins::TwitterWatch

Gem Version Dependency Status Build Status Coverage Status Code Climate

Posts the content of a linked Tweet to the channel, can also follow users and post their tweets.

Installation

Add this line to your application's Gemfile:

gem 'cinch-twitterwatch'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cinch-twitterwatch

Usage

For the gem to work all you will need to is require the gem and add it to your plugins:

require 'cinch-twitterwatch'

@bot = Cinch::Bot.new do
  configure do |c|
    c.plugins.plugins = [ Cinch::Plugins::TwitterWatch]
  end
end

And, acquire Twitter credentials. They are simple to acquire, see https://dev.twitter.com/apps/new

Once you have said credentials you will need to pass them to the Plugin's config like so:

c.plugins.options[Cinch::Plugins::TwitterWatch] = { consumer_key:    'consumer_key',
                                                    consumer_secret: 'consumer_secret',
                                                    access_token:    'access_token',
                                                    access_secret:   'access_secret',
                                                    watchers: {
                                                      '#CHANNEL' => ['TWITTER_USERNAME']
                                                    }
                                                  }

Then post a link to a specific tweet and the bot should post the content of said tweet to the channel.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request