Module: YAIB

Defined in:
lib/yaib.rb,
lib/yaib/bot.rb,
lib/yaib/irc.rb,
lib/yaib/user.rb,
lib/yaib/config.rb,
lib/yaib/channel.rb,
lib/yaib/message.rb,
lib/yaib/respond.rb,
lib/yaib/version.rb,
lib/yaib/responder.rb

Defined Under Namespace

Classes: Bot, Channel, Config, IRC, Message, Respond, Responder, User

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.construct {|@config| ... } ⇒ Object

Yields:

  • (@config)


14
15
16
17
18
19
# File 'lib/yaib.rb', line 14

def self.construct
    @config = Config.new
    yield @config
    @config.log.info("Creating Bot")
    @bot = Bot.new(@config)
end