Module: HackBot

Defined in:
lib/hack_bot.rb,
lib/hack_bot/version.rb

Defined Under Namespace

Modules: Plugins

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.start(server, channels, nick, realname, user) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/hack_bot.rb', line 7

def self.start(server, channels, nick, realname, user)
  bot = Cinch::Bot.new do
    configure do |c|
      c.server = server
      c.channels = channels
      c.nick = nick
      c.realname = realname
      c.user = user
      c.plugins.plugins = [HackBot::Plugins::ChannelInteraction,
                           HackBot::Plugins::Event]
    end
  end

  bot.start
end