class Lita::Handlers::OnewheelApplenews
Public Instance Methods
handle_applenews(response)
click to toggle source
# File lib/lita/handlers/onewheel_applenews.rb, line 8 def handle_applenews(response) Lita.logger.info("Fetching #{response.matches[0][0]}") resp = RestClient.get(response.matches[0][0]) url = '' if m = /redirectToUrlAfterTimeout\(\"(.*)\"/.match(resp) url = m[1] end response.reply url end