Class: Msg
- Inherits:
- Rubot::Core::Command show all
- Defined in:
- lib/template/commands/msg.rb
Instance Method Summary collapse
Methods inherited from Rubot::Core::Command
#initialize, #protected?, #run
Constructor Details
This class inherits a constructor from Rubot::Core::Command
Instance Method Details
#execute(server, message, options) ⇒ Object
3 4 5 |
# File 'lib/template/commands/msg.rb', line 3 def execute(server, , ) server.msg(.body.split(" ")[0], .body.split(" ")[1..-1].join(" ")) end |