generated from array-in-a-matrix/matrix-bot-template
react with current count
This commit is contained in:
parent
3e39753a5c
commit
358961d790
7
index.js
7
index.js
|
@ -78,6 +78,13 @@ client.on("room.message", (roomId, event) => {
|
|||
}
|
||||
if (event["content"]["body"].match(/l*.i.*n.*u.*x/gi)){
|
||||
addCount(roomId, event);
|
||||
client.sendEvent(roomId, "m.reaction" ({
|
||||
"m.relates_to": {
|
||||
"event_id":event["event_id"],
|
||||
"key":data.count[message["sender"]],
|
||||
"rel_type": "m.annotation"
|
||||
}
|
||||
}))
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue