Remove language from output

This commit is contained in:
1computer1 2019-03-15 02:31:08 -04:00
parent aa3e3a28f2
commit 7073853834

View file

@ -45,7 +45,7 @@ class MessageInvalidListener extends Listener {
} }
const invalid = parse.invalid.length ? `Invalid options: ${parse.invalid.join(', ')}\n` : ''; const invalid = parse.invalid.length ? `Invalid options: ${parse.invalid.join(', ')}\n` : '';
const output = `${invalid}\`\`\`${parse.language.aliases[0]}\n${result}\`\`\``; const output = `${invalid}\`\`\`\n${result}\n\`\`\``;
if (output.length >= 2000) { if (output.length >= 2000) {
const key = await fetch('https://hastebin.com/documents', { method: 'POST', body: result }) const key = await fetch('https://hastebin.com/documents', { method: 'POST', body: result })
.then(res => res.json()) .then(res => res.json())