Class: Rodbot::Plugins::Matrix::Relay

Inherits:
Relay
  • Object
show all
Includes:
Memoize
Defined in:
lib/rodbot/plugins/matrix/relay.rb

Instance Method Summary collapse

Methods included from Memoize

included

Methods inherited from Relay

say

Instance Method Details

#loopsObject



13
14
15
16
17
18
# File 'lib/rodbot/plugins/matrix/relay.rb', line 13

def loops
  client.on_invite_event.add_handler { on_invite(_1) }
  client.sync(filter: filter(empty: true))
  client.on_event.add_handler('m.room.message') { on_message(_1) }
  [method(:read_loop), method(:write_loop)]
end