Sha256: 2c44ebfed6682ac1f8fe0f5c2f2a94dceff1e5075c5890183284753315abef52

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

require_relative 'streaming'
require_relative '../bot'

module Elephrame
  module Bots
    
    # a bot that can respond to all interactions
    class Interact < BaseBot
      include Elephrame::Streaming
      include Elephrame::AllInteractions
      
      def initialize
        super()
        
        setup_streaming
      end
    end

    # a bot that only replies when mentioned
    # run accepts a block, but also supports
    # use of on_reply
    class Reply < BaseBot
      include Elephrame::Streaming
      include Elephrame::Reply

      def initialize
        super()
        
        setup_streaming
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elephrame-0.2.0 lib/elephrame/streaming/bots.rb