Sha256: c8f3350174cf6181c234915c430e45205f24c8bb4966415b7e1d3e7ae6fc101d

Contents?: true

Size: 523 Bytes

Versions: 1

Compression:

Stored size: 523 Bytes

Contents

require 'bombshell'
require 'travian_bot/application'

class TravianBot
 class Shell < Bombshell::Environment
   include Bombshell::Shell
   include TravianBot::Application::Connection
   include TravianBot::Application::Hero

   prompt_with 'travianbot'
   
   having_launched do
    @browser = login
    init # binding is on your shell *class*
   end
   
   def start_quest
     start_closest_adventure @browser
   end

   def help
     h1 'Help'
   end
   
   private
   include TravianBot::Application::Display
 end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
travian_bot-0.3.0 lib/travian_bot/shell.rb