Project

summon_bot

0.0
No release in over 3 years
Low commit activity in last 3 years
SummonBot can summon slack bot only define your environment. SummonBot is Wrapped gem Slack::Notifier
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.0

Runtime

 Project Readme

SummonBot

SummonBot can summon slack bot only define your environment. SummonBot is Wrapped gem Slack::Notifier

Installation

Add this line to your application's Gemfile:

gem 'summon_bot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install summon_bot

Usage

First, define your environment for example

.env

SUMMON_BOT_SLACK__NATTSUNN=https://hooks.slack.com/services/XXXXXXXX/XXXXXXXX/XXXXXXXX
SummonBot::Slack.nattsunn.speak('notification')
=> #<Net::HTTPOK 200 OK readbody=true>

And this:

If you want to use dummy notification class, write this your code. initializer/summon_bot.rb instead.

SummonBot::Slack.instance_eval { @notifier_class = SummonBot::DummyNotifier }

Test command.

RAILS_ENV=test bundle exec rspec

License

The gem is available as open source under the terms of the MIT License.