UNPKG

300 BJavaScriptView Raw
1//
2
3const Client = require("@minodisk/medkit");
4const { toPost } = require("./format");
5
6module.exports = (client, text) => {
7 return new Promise(async (resolve, reject) => {
8 const { meta } = toPost(text);
9 await client.destroyPost(meta.id);
10 await client.close();
11 resolve();
12 });
13};