Class: Rodbot::Plugins::Matrix::Relay
- Includes:
- Memoize
- Defined in:
- lib/rodbot/plugins/matrix/relay.rb
Instance Method Summary collapse
Methods included from Memoize
Methods inherited from Relay
Instance Method Details
#loops ⇒ Object
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') { (_1) } [method(:read_loop), method(:write_loop)] end |