module Boty module Slack class Chat include Slack::URL url "https://slack.com/api/chat.postMessage" def post_message(message, parameters = {}) defaults = { as_user: true, channel: "general", text: message } URL.get parameterize(defaults.merge parameters) end end end end