diff --git a/events/messageCreate.js b/events/messageCreate.js index 0a1ce8fa..cfc43606 100644 --- a/events/messageCreate.js +++ b/events/messageCreate.js @@ -69,6 +69,8 @@ module.exports = async (message) => { await client.createMessage(message.channel.id, `${message.author.mention}, the resulting file was too large to upload. Try again with a smaller image if possible.`); } else if (error.toString().includes("Timed out")) { await client.createMessage(message.channel.id, `${message.author.mention}, the request timed out before I could download that image. Try uploading your image somewhere else.`); + } else if (error.toString().includes("ENOMEM")) { + await client.createMessage(message.channel.id, `${message.author.mention}, looks like I'm out of available resources to run this command at the moment. Try again in a bit; a more permanent fix is in the works.`); } else { logger.error(error.toString()); await client.createMessage(message.channel.id, "Uh oh! I ran into an error while running this command. Please report the content of the attached file here or on the esmBot Support server: ", [{