set presence
This commit is contained in:
parent
5f7fd7a957
commit
64e4f890e5
@ -82,6 +82,7 @@ class Matrix extends Adapter
|
|||||||
@emit 'connected'
|
@emit 'connected'
|
||||||
@client.on 'Room.timeline', (event, room, toStartOfTimeline) =>
|
@client.on 'Room.timeline', (event, room, toStartOfTimeline) =>
|
||||||
if event.getType() == 'm.room.message' and toStartOfTimeline == false
|
if event.getType() == 'm.room.message' and toStartOfTimeline == false
|
||||||
|
@client.setPresence "online"
|
||||||
message = event.getContent()
|
message = event.getContent()
|
||||||
name = event.getSender()
|
name = event.getSender()
|
||||||
user = @robot.brain.userForId name
|
user = @robot.brain.userForId name
|
||||||
|
Loading…
Reference in New Issue
Block a user