forked from engineering/cloudservices
Added haste upload fallback so command won't disable
parent
2f0795b34f
commit
22bd0f5a42
|
@ -36,8 +36,12 @@ export default class Eval extends Command {
|
||||||
|
|
||||||
const display = this.client.util.splitString(output, 1975);
|
const display = this.client.util.splitString(output, 1975);
|
||||||
if (display[5]) {
|
if (display[5]) {
|
||||||
|
try {
|
||||||
const { data } = await axios.post('https://snippets.cloud.libraryofcode.org/documents', display.join(''));
|
const { data } = await axios.post('https://snippets.cloud.libraryofcode.org/documents', display.join(''));
|
||||||
return message.channel.createMessage(`${this.client.stores.emojis.success} Your evaluation output can be found on https://snippets.cloud.libraryofcode.org/${data.key}`);
|
return message.channel.createMessage(`${this.client.stores.emojis.success} Your evaluation output can be found on https://snippets.cloud.libraryofcode.org/${data.key}`);
|
||||||
|
} catch (error) {
|
||||||
|
return message.channel.createMessage(`${this.client.stores.emojis.error} ${error}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return display.forEach((m) => {
|
return display.forEach((m) => {
|
||||||
|
|
Loading…
Reference in New Issue