Sha256: 3d70272a6ce1880ffe596ac267c86dc3e8138c12e6bd428a208a7d3b1b18775b
Contents?: true
Size: 324 Bytes
Versions: 13
Compression:
Stored size: 324 Bytes
Contents
# frozen_string_literal: true require 'slack-ruby-client' Slack.configure do |config| config.token = ENV['SLACK_API_TOKEN'] raise 'Missing ENV[SLACK_API_TOKEN]!' unless config.token end client = Slack::Web::Client.new client.auth_test client.chat_postMessage(channel: '#general', text: 'Hello World', as_user: true)
Version data entries
13 entries across 13 versions & 1 rubygems