Skip to content
Browse files

issue#2 closed.

  • Loading branch information...
1 parent cf6a2d8 commit bce00d7babd114dba5e1f25e29ee2b4cbe2ca7cb @biwakonbu committed Jan 31, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 daisan_bot.rb
View
4 daisan_bot.rb
@@ -55,22 +55,20 @@ def concat_to(table)
array[-1].concat(x)
next
end
- array << x if /[^(平日便|土曜日便|夏期ダイヤ)]/ =~ x[0]
end
array
end
def collect_table(timetable)
text = ''
tweets = []
- diagrum = ['平日便', '土曜日便', '夏期ダイヤ']
timetable.each do |wday|
time = []
wday.each do |index|
if /住道発|大学発/ =~ index
index.sub!(/\(.+\)/, "#{$1}")
- text = diagrum.shift + ", #{index}:\n"
+ text = " #{index}:\n"
next
end

0 comments on commit bce00d7

Please sign in to comment.
Something went wrong with that request. Please try again.