summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjoe <joe@lc8n.com>2012-02-07 13:21:45 +0000
committerwjoe <joe@lc8n.com>2012-02-07 13:21:45 +0000
commite524d0abbe762062466315a00f46dcf23a8e3b41 (patch)
treea420176781c62092248d9e73e6ade6c5d6b72aa2
parent328993782b8261c4915a225a492be9b8cd26b358 (diff)
Historic commit 2.0.6 (07-Feb-2012 13:03)
-rw-r--r--blatweet.rb6
1 files 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