Permalink
Browse files

#6 fixed.

  • Loading branch information...
1 parent fff6377 commit b54385d64bc693e550942be248423a7888eef13a @biwakonbu committed Feb 10, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 daisan_bot.rb
View
@@ -25,6 +25,7 @@
bus_schedule = 'http://www.osaka-sandai.ac.jp/cgi-bin/cms/campus_life.cgi?studentlife_cd=5JzeUsFN0i'
doc = Nokogiri::HTML(open(bus_schedule))
SATURDAY = 6
+SUNDAY = 0
def split_table(column)
timetable = "table[@class='timetable_suminodo']"
@@ -105,7 +106,7 @@ def collect_table(timetable)
tweets = "現在直近のシャトルバス運行時間 \n"
tweets << collect_table(suminodo_table)
tweets << collect_table(daisan_table)
- client.update(tweets)
+ client.update(tweets) unless Time.now.wday == SUNDAY
end
sleep 60

0 comments on commit b54385d

Please sign in to comment.