lib/travian_bot/application.rb in travian_bot-0.2.0 vs lib/travian_bot/application.rb in travian_bot-0.2.1
- old
+ new
@@ -1,8 +1,6 @@
require 'selenium-webdriver'
-require 'chronic'
-
Dir.glob(File.join(File.dirname(__FILE__), '/application/*.rb')).sort.each { |lib| load lib }
class TravianBot
class Application
@@ -24,11 +22,10 @@
@game.quit
return 1
end
- private
def current_avaible_buildings
h2 'Avaible buildings'
buildings = avaible_buildings(@game)
buildings.each do |building|
@@ -61,16 +58,9 @@
troops.each do |troop|
puts troop.to_s
end
new_line
end
- end
-
- # Get the ending time of a string
- def wait_till(input)
- time = input.to_s.match(/(\d*):(\d*)$/)
-
- Chronic.parse("today #{time[0]}:#{time[1]}")
end
end
end
end