-
Notifications
You must be signed in to change notification settings - Fork 0
/
friendsauto.patch
25 lines (25 loc) · 957 Bytes
/
friendsauto.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/lib/plugins/friends.rb b/lib/plugins/friends.rb
index 09d5fcf..f61a45f 100644
--- a/lib/plugins/friends.rb
+++ b/lib/plugins/friends.rb
@@ -4,14 +4,16 @@ module Termtter::Client
:name => :diff_follow, :aliases => [:diff],
:exec_proc => lambda {|arg|
user_name = arg.empty? ? config.user_name : arg
+ puts "friends:"
+ call_commands "friends" if public_storage[:friends].nil?
+ puts
+ puts "followers:"
+ call_commands "followers" if public_storage[:followers].nil?
friends = public_storage[:friends]
followers = public_storage[:followers]
- if friends.nil? || followers.nil?
- puts 'Do followers and friends first.'
- return
- end
friends = friends.map(&:screen_name)
followers = followers.map(&:screen_name)
+ puts
puts "friends - followers:"
puts (friends - followers).map{|s|"http://#{config.host}/#{s}"}.join("\n")
puts