class SlackbotFrd::Bot

Attributes

bots[RW]

Public Class Methods

only(*bots) click to toggle source
# File lib/slackbot_frd/lib/bot.rb, line 4
def self.only(*bots)
  @bots ||= []
  @bots.push(bots).flatten!
end

Public Instance Methods

add_callbacks(slack_connection) click to toggle source

This is where the bot adds all of their callbacks to the bpbot

# File lib/slackbot_frd/lib/bot.rb, line 14
def add_callbacks(slack_connection)
  raise StandardError.new('You must override the define() method for your bot to do anything')
end