lib/lita/handlers/wit.rb in lita-wit-0.1.1 vs lib/lita/handlers/wit.rb in lita-wit-0.1.2
- old
+ new
@@ -1,14 +1,15 @@
module Lita
module Handlers
class Wit < Handler
on :unhandled_message, :handle
config :server_access_token, type: String, required: true
+ config :actions_class, type: Class, required: true
def initialize(robot)
super
- @bickle = Lita::Utils::Bickle.new(robot)
- @client = Lita::Services::WitClient.new(robot)
+ @bickle = Utils::Bickle.new(robot)
+ @client = Services::WitClient.new(robot)
end
def handle(payload)
message = payload[:message]
return unless @bickle.you_talking_to_me?(message)