A Slack Bot that pulls Pixiv information and posts the full image(s) into Slack, with iOS shortcuts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
277 B

  1. module Slack
  2. module Request
  3. private
  4. alias_method :_request, :request
  5. def request(method, path, options)
  6. response = _request(method, path, options)
  7. fail response['error'] unless response['ok'] if response.is_a?(Hash)
  8. response
  9. end
  10. end
  11. end