Sha256: f7f88addd74a752c8c9258dfbf2b13163645fca5027d34b110a58eb348105506

Contents?: true

Size: 455 Bytes

Versions: 5

Compression:

Stored size: 455 Bytes

Contents

require 'dazeus/event/message'

module Dazeus
  module Event
    class Command < Message
      attr_accessor :command, :args, :remainder
      def post_init
        super
        @remainder = if @params.length > 4 then @params[4] else '' end
        @message = @dazeus.highlightCharacter + @message
        @message += ' ' + @remainder if @remainder.length > 0
        @args = @params[5..-1]
        @args = [] if @args == nil
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dazeus-0.0.1.201306211031 lib/dazeus/event/command.rb
dazeus-0.0.1.201306161801 lib/dazeus/event/command.rb
dazeus-0.0.1.201306161750 lib/dazeus/event/command.rb
dazeus-0.0.1.201306161619 lib/dazeus/event/command.rb
dazeus-0.0.1.201306012328 lib/dazeus/event/command.rb