1 | //
|
2 |
|
3 | const Client = require("@minodisk/medkit");
|
4 | const { toPost } = require("./format");
|
5 |
|
6 | module.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 | };
|