From e524d0abbe762062466315a00f46dcf23a8e3b41 Mon Sep 17 00:00:00 2001 From: wjoe Date: Tue, 7 Feb 2012 13:21:45 +0000 Subject: Historic commit 2.0.6 (07-Feb-2012 13:03) --- blatweet.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blatweet.rb b/blatweet.rb index bb7a2e8..e79a82a 100644 --- a/blatweet.rb +++ b/blatweet.rb @@ -11,7 +11,7 @@ number_of_tweets = 1 message = nil limit = false debug = false -version = 'v2.0.5' +version = 'v2.0.6' help = false irc_nick = nil ops = nil @@ -20,6 +20,7 @@ ARGV[2].split(' ').each{|arg| ARGV << arg} if ARGV[2] ARGV.delete_at 2 STDIN.gets.split(' ').each{|arg| ARGV << arg} if ARGV == [] args = ARGV.dup +puts args.inspect options = OptionParser.new do |opts| opts.banner = "Usage: #{File.basename($0)} -h" @@ -107,7 +108,8 @@ begin client.search("from:#{username}", :rpp => number_of_tweets)['results'].each_with_index{|tweet, index| output << "#{index+1}: #{tweet['text']}"} puts output.join ' ' else - oauth_client('intensemarcus', config).update ARGV.join(' ') + response = oauth_client('intensemarcus', config).update ARGV.join(' ') + puts response['error'] ? response['error'] : "Posted tweet to intensemarcus from #{irc_nick}." end rescue StandardError => e -- cgit v1.2.3