Created
September 14, 2011 08:04
-
-
Save marocchino/1216075 to your computer and use it in GitHub Desktop.
search and reply bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://cjohansen.no/en/ruby/twibot_a_microframework_for_twitter_bots_in_ruby | |
require 'twibot' | |
{"keyword1"=> "message1", | |
"keyword2"=> "message2", | |
"keyword3"=> "message3", | |
"keyword4"=> "message4", | |
"keyword5"=> "message5", | |
"keyword6"=> "message6", | |
"keyword7"=> "message7"}.each do |keyword, message| | |
search keyword do | |
post_reply message | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment