Mercurial > hgrepos > hgweb.cgi > xsotter
view c109047bot.rb @ 8:2ebeaae57e96
chop 140
author | KAMURA Sota <c109047@e.koeki-u.ac.jp> |
---|---|
date | Tue, 07 Feb 2012 23:26:41 +0900 |
parents | b79b888eceac |
children |
line wrap: on
line source
#! /usr/bin/env ruby # -*- coding: euc-jp -*- require'/home/irhome/c109/c109047/xsotter/xsotter_class' def follow () followers = Twitter.follower_ids("c109047").ids following = Twitter.friend_ids("c109047").ids newbie = followers - following newbie.each do |i| Twitter.friendship_create(i) end end begin xsotter = Xsotter.new("/xsotter/c109047_token") #ptl = xsotter.public_tl while true if /^0/=~Time.now.min.to_s follow xsotter.comand(["-T","#{Time.now.hour}»þ¤À¤è"]) end sleep 59 end rescue retry end