jahschwa / sibyl

a python chatbot with a focus on XBMC
GNU General Public License v3.0
7 stars 6 forks source link

matrix: can't send to users #47

Open jahschwa opened 6 years ago

jahschwa commented 6 years ago

Partially related to #30

You can't send messages to a MatrixUser, e.g. if I wanted to do:

user = bot.get_protocol('matrix').new_user('@josh:terracrypt.net')
bot.send('hello', user)

I would hit:

  File "protocols/sibyl_matrix.py", line 322, in send
    to.room.send_text(text)
AttributeError: 'MatrixUser' object has no attribute 'room'

References: