Sha256: 4b8be846317e665e30e1296b4155cbdb1a0ce7ec6f61a9d628d55a77b9071056
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
class Scamp module Connection private def connect(api_key, room_list) EventMachine.run do # Check for rooms to join, and join them EventMachine::add_periodic_timer(5) do while id = @rooms_to_join.pop join_and_stream(id) end end populate_room_list do logger.debug "Adding #{room_list.join ', '} to list of rooms to join" @rooms_to_join = room_list.map{|c| room_id(c) } end # populate bot data separately, in case we are ignoring ourselves fetch_data_for('me') end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scamp-0.2.1 | lib/scamp/connection.rb |
scamp-0.2.0 | lib/scamp/connection.rb |
scamp-0.1.2 | lib/scamp/connection.rb |