lib/socrates/bots/cli_bot.rb in socrates-0.1.2 vs lib/socrates/bots/cli_bot.rb in socrates-0.1.3
- old
+ new
@@ -1,8 +1,8 @@
module Socrates
module Bots
class CLIBot
- def initialize(adapter:, state_factory:)
+ def initialize(adapter: nil, state_factory:)
@adapter = adapter || Adapters::ConsoleAdapter.new
@dispatcher = Core::Dispatcher.new(adapter: @adapter, state_factory: state_factory)
end
def start