Class: AdvancedRubyCommandHandler::Client

Inherits:
BaseClient
  • Object
show all
Defined in:
lib/advanced_ruby_command_handler/client.rb

Instance Method Summary collapse

Methods inherited from BaseClient

#initialize

Constructor Details

This class inherits a constructor from BaseClient

Instance Method Details

#runObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/advanced_ruby_command_handler/client.rb', line 9

def run
  Logger.check("Client run")
  Thread.new do
    Logger.info("Type '.exit' to turn off the bot")
    loop do
      Process.exit!(true) if $stdin.gets.chomp == ".exit"
    end
  end
  super.run
end