react with current count

This commit is contained in:
jjj333_p 2023-10-29 14:12:19 -04:00
parent 3e39753a5c
commit 358961d790

View file

@ -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"
}
}))
}
})