Module: Coffeemaker::Bot::Irc::Commands

Included in:
Connection
Defined in:
lib/coffeemaker/bot/irc/commands.rb

Instance Method Summary collapse

Instance Method Details

#join(channel) ⇒ Object



7
8
9
# File 'lib/coffeemaker/bot/irc/commands.rb', line 7

def join(channel)
  send_command :join, channel
end

#part(channel) ⇒ Object



11
12
13
# File 'lib/coffeemaker/bot/irc/commands.rb', line 11

def part(channel)
  send_command :part, channel
end

#privmsg(recipient, text) ⇒ Object Also known as: msg



15
16
17
# File 'lib/coffeemaker/bot/irc/commands.rb', line 15

def privmsg(recipient, text)
  send_command :privmsg, recipient, ":#{text}"
end