Module: IRC::Commands
- Included in:
- IRC::Callback::CallbackDSL, Server
- Defined in:
- lib/on_irc/commands.rb
Instance Method Summary collapse
- #join(channel) ⇒ Object
- #notice(target, message) ⇒ Object
- #part(channel, message = nil) ⇒ Object
- #pong(msg) ⇒ Object
- #privmsg(target, message) ⇒ Object (also: #msg)
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, ) send_cmd(:notice, target, ) end |
#part(channel, message = nil) ⇒ Object
17 18 19 |
# File 'lib/on_irc/commands.rb', line 17 def part(channel, =nil) send_cmd(:part, channel, ) 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, ) send_cmd(:privmsg, target, ) end |