Sha256: fa6261e2c9af923f478a2eae1cfae1a99eb58d428784bd3994c1f3ed54eff70b
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
module Socrates module Bots class CLIBot def initialize(adapter: nil, state_factory:) @adapter = adapter || Adapters::ConsoleAdapter.new @dispatcher = Core::Dispatcher.new(adapter: @adapter, state_factory: state_factory) end def start while (input = gets.chomp) @dispatcher.dispatch(message: input) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socrates-0.1.3 | lib/socrates/bots/cli_bot.rb |