diff --git a/src/lib/utils.js b/src/lib/utils.js index bee16b4..16be28d 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -150,12 +150,11 @@ async function getImage(msg, str) { } async function hastebin(body) { - const res = await fetch(`https://nekobin.com/api/documents`, { + const res = await fetch(`${hf.config.haste_provider}/documents`, { method: "POST", - headers: {"Content-Type": "application/json"}, - body: JSON.stringify({content: body}), + body, }).then((r) => r.json()); - return ""; + return `<${hf.config.haste_provider}/${res.key}>`; } hf.selectionMessages = hf.selectionMessages || new Collection();