Skip to content

SynsbasenSlack: A simple Slack wrapper made for internal use

Notifications You must be signed in to change notification settings

Synsbasen/synsbasen_slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Synsbasen Slack

A simple wrapper that defines a SynsbasenSlack::Wrapper class to be used when sending messages to Slack.

Installation

Add the gem to your Gemfile:

gem "synsbasen_slack", github: "Synsbasen/synsbasen_slack", branch: "master"

Configuration

Start by creating a new initializer:

$ touch config/initializers/synsbasen_slack.rb

Next, configure the gem by inserting the following:

SynsbasenSlack.configure do |config|
  config.slack_access_token = ENV['SLACK_ACCESS_TOKEN']
  config.slack_default_channel = ENV['SLACK_DEFAULT_CHANNEL']
end

Finally, use the Wrapper class to send messages:

SynsbasenSlack::Wrapper.chat_postMessage(text: "This is (hopefully a successful 🤞) test!")

About

SynsbasenSlack: A simple Slack wrapper made for internal use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages