lib/socrates/bots/cli.rb in socrates-0.1.25 vs lib/socrates/bots/cli.rb in socrates-0.1.26
- old
+ new
@@ -2,10 +2,10 @@
require "socrates/core/dispatcher"
module Socrates
module Bots
class CLI
- def initialize(adapter: nil, state_factory:)
+ def initialize(state_factory:, adapter: nil)
@adapter = adapter || Adapters::Console.new
@dispatcher = Core::Dispatcher.new(adapter: @adapter, state_factory: state_factory)
end
def start