Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tweet format change.

  • Loading branch information...
commit cf6a2d89d092a23a6e1f998b4016ccda312780ca 1 parent 11fb3f1
@biwakonbu authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 daisan_bot.rb
View
5 daisan_bot.rb
@@ -69,7 +69,8 @@ def collect_table(timetable)
time = []
wday.each do |index|
if /住道発|大学発/ =~ index
- text = diagrum.shift + ", #{index}:\r\n"
+ index.sub!(/\(.+\)/, "#{$1}")
+ text = diagrum.shift + ", #{index}:\n"
next
end
@@ -102,7 +103,7 @@ def collect_table(timetable)
while true
begin
if Time.now.min % 10 == 0 and (7 <= Time.now.hour and Time.now.hour <= 23)
- tweets = "現在直近のシャトルバス運行時間 \r\n"
+ tweets = "現在直近のシャトルバス運行時間 \n"
tweets << collect_table(suminodo_table)
tweets << collect_table(daisan_table)
client.update(tweets)
Please sign in to comment.
Something went wrong with that request. Please try again.