Sha256: 745c962bb6da0841c63b0ab7d898c5aaa28dc00915b57a064cee59bf111c9d57
Contents?: true
Size: 702 Bytes
Versions: 12
Compression:
Stored size: 702 Bytes
Contents
require 'rest-client' module PanickerApi module_function def general_message(text_to_send = '', bot: nil, target: nil, txt: nil, company: nil) txt ||= text_to_send RestClient.post "https://panic.ozz.fi/shoot.json?key=#{Rails.configuration.settings['system_panic_key']}", { txt: txt, target: target, bot: bot, not_markdown: true }.to_json, { content_type: 'application/json' } rescue Rails.logger.error "Silently failing sending panicker a message #{txt}." Rails.logger.error $! end end
Version data entries
12 entries across 12 versions & 1 rubygems