10 lines
312 B
JavaScript
10 lines
312 B
JavaScript
|
exports.runQuery = async (roomId, event, userInput) => {
|
||
|
return matrix.utils.fetchEncryptedOrNot(roomId, { event_id: userInput })
|
||
|
.then(event => matrix.utils.expandReact(event))
|
||
|
.catch(e => {
|
||
|
matrixClient.sendHtmlNotice(roomId, 'Sad!', '<strong>Sad!</strong>')
|
||
|
})
|
||
|
.catch(() => {});
|
||
|
};
|
||
|
|