Sha256: faa1769ffa0447ca6791a29ef3d248a4ce352361412385ecd5e62fe7ea0d76d0

Contents?: true

Size: 378 Bytes

Versions: 3

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module Hahamut
  module Message
    # Command Message
    class Command < Base
      class << self
        def match?(message)
          message['message']&.key?('bot_command')
        end
      end

      attribute :event_id, :string
      attribute :bot_command, :string

      # Unsupport
      def type
        nil
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hahamut-0.1.2 lib/hahamut/message/command.rb
hahamut-0.1.1 lib/hahamut/message/command.rb
hahamut-0.1.0 lib/hahamut/message/command.rb