Module: IRC::Commands

Included in:
IRC::Callback::CallbackDSL, Server
Defined in:
lib/on_irc/commands.rb

Instance Method Summary collapse

Instance Method Details

#join(channel) ⇒ Object



13
14
15
# File 'lib/on_irc/commands.rb', line 13

def join(channel)
  send_cmd(:join, channel)
end

#notice(target, message) ⇒ Object



9
10
11
# File 'lib/on_irc/commands.rb', line 9

def notice(target, message)
  send_cmd(:notice, target, message)
end

#part(channel, message = nil) ⇒ Object



17
18
19
# File 'lib/on_irc/commands.rb', line 17

def part(channel, message=nil)
  send_cmd(:part, channel, message)
end

#pong(msg) ⇒ Object



21
22
23
# File 'lib/on_irc/commands.rb', line 21

def pong(msg)
  send_cmd(:pong, msg)
end

#privmsg(target, message) ⇒ Object Also known as: msg



3
4
5
# File 'lib/on_irc/commands.rb', line 3

def privmsg(target, message)
  send_cmd(:privmsg, target, message)
end