lib/socrates/bots/cli.rb in socrates-0.1.16 vs lib/socrates/bots/cli.rb in socrates-0.1.17
- old
+ new
@@ -8,11 +8,13 @@
@adapter = adapter || Adapters::Console.new
@dispatcher = Core::Dispatcher.new(adapter: @adapter, state_factory: state_factory)
end
def start
+ context = { channel: "CONSOLE" }
+
while (input = gets.chomp)
- @dispatcher.dispatch(input)
+ @dispatcher.dispatch(input, context: context)
end
end
end
end
end