Instalation

Add gem slackbot-notifier to your gemfile.

Configuration

Create an initializer named slackbot_notifier that has the following stuff:

require 'slackbot_notifier'

SlackbotNotifier.slackbot_url = YOUR_SLACKBOT_URL

Usage

By default it will notify to the general room.

SlackbotNotifier.new.notify('pepe')

But if we pass to the initializer the room name, it will notify to that room.

SlackbotNotifier.new('another_room').notify('pepe')