Switch from hastebin.com to hasteb.in

This commit is contained in:
1Computer 2019-09-23 11:48:31 -04:00 committed by 1Computer1
parent 5a50b41426
commit d6907e1974

View file

@ -50,11 +50,11 @@ class MessageInvalidListener extends Listener {
const output = `\`\`\`\n${response}\n\`\`\``; const output = `\`\`\`\n${response}\n\`\`\``;
if (output.length >= 2000) { if (output.length >= 2000) {
const key = await fetch('https://hastebin.com/documents', { method: 'POST', body: response }) const key = await fetch('https://hasteb.in/documents', { method: 'POST', body: response })
.then(res => res.json()) .then(res => res.json())
.then(json => json.key); .then(json => json.key);
return message.util.send(`Output was too long: <https://hastebin.com/${key}>`); return message.util.send(`Output was too long: <https://hasteb.in/${key}>`);
} }
return message.util.send(output); return message.util.send(output);