release 0.1.0

This commit is contained in:
vulet 2019-07-03 17:27:39 -04:00
parent 4b3ba6b516
commit 35b4509238
18 changed files with 399 additions and 1 deletions

18
commands/copy.js Normal file
View file

@ -0,0 +1,18 @@
const axios = require('axios');
exports.runQuery = function (matrixClient, room, userInput, registrar) {
axios({
method: 'POST',
url: `${registrar.config.fediverse}/api/v1/statuses/${userInput}/reblog`,
headers: { Authorization: `Bearer ${registrar.config.fediverseToken}` },
}).then((response) => {
matrixClient.sendHtmlNotice(room.roomId,
'',
`You have repeated:
<blockquote>${response.data.content}`);
})
.catch((e) => {
matrixClient.sendHtmlNotice(room.roomId,
'', `${e}`);
});
};