comparison c109047bot.rb @ 0:b79b888eceac

init
author KAMURA Sota <c109047@e.koeki-u.ac.jp>
date Mon, 06 Feb 2012 17:25:58 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:b79b888eceac
1 #! /usr/bin/env ruby
2 # -*- coding: euc-jp -*-
3
4 require'/home/irhome/c109/c109047/xsotter/xsotter_class'
5 def follow ()
6 followers = Twitter.follower_ids("c109047").ids
7 following = Twitter.friend_ids("c109047").ids
8 newbie = followers - following
9 newbie.each do |i|
10 Twitter.friendship_create(i)
11 end
12 end
13
14 begin
15 xsotter = Xsotter.new("/xsotter/c109047_token")
16
17 #ptl = xsotter.public_tl
18 while true
19 if /^0/=~Time.now.min.to_s
20 follow
21 xsotter.comand(["-T","#{Time.now.hour}»þ¤À¤è"])
22
23 end
24 sleep 59
25 end
26 rescue
27 retry
28 end

yatex.org