lib/lita/handlers/onewheel_duckduckgo.rb in lita-onewheel-duckduckgo-0.0.1 vs lib/lita/handlers/onewheel_duckduckgo.rb in lita-onewheel-duckduckgo-0.0.2

- old
+ new

@@ -19,10 +19,10 @@ Lita.logger.debug "Reply: #{reply}" response.reply reply end def get_result(query) - result = RestClient.get("http://api.duckduckgo.com/?q=#{query}&format=json") + JSON.parse(RestClient.get("http://api.duckduckgo.com/?q=#{query}&format=json")) end Lita.register_handler(self) end end