Class: YAIB::Channel

Inherits:
Respond show all
Defined in:
lib/yaib/channel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Respond

#action, #notice, #privmsg

Constructor Details

#initialize(channel, bot) ⇒ Channel

Returns a new instance of Channel.



5
6
7
8
9
10
# File 'lib/yaib/channel.rb', line 5

def initialize(channel, bot)
    @bot = bot
    @name = channel
    @channel = @name
    @bot.irc.join channel
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/yaib/channel.rb', line 3

def name
  @name
end