Sha256: f87af35ee37d441e9c7d5998cc13365bbe2dcfafa937721bf5763b68716f70e6
Contents?: true
Size: 447 Bytes
Versions: 2
Compression:
Stored size: 447 Bytes
Contents
require 'chronic' require 'yaml' class TravianBot module Tools def get_credentials credentials = YAML::load(File.open("#{ENV['HOME']}/.travian_bot")) [credentials['travian_bot']['url'], credentials['travian_bot']['usr'], credentials['travian_bot']['pwd']] end def wait_till(input) time = input.to_s.match(/(\d*):(\d*)$/) Chronic.parse("today #{time[0]}:#{time[1]}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
travian_bot-0.1.1 | lib/travian_bot/tools.rb |
travian_bot-0.1.0 | lib/travian_bot/tools.rb |