Some image fixes, updated packages

This commit is contained in:
Essem 2022-01-29 15:04:41 -06:00
parent 17819881f6
commit 6aa1bf7ff6
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
6 changed files with 151 additions and 443 deletions

View file

@ -109,7 +109,7 @@ class ImageCommand extends Command {
} catch (e) {
if (e === "Request ended prematurely due to a closed connection") return "This image job couldn't be completed because the server it was running on went down. Try running your command again.";
if (e === "Job timed out" || e === "Timeout") return "The image is taking too long to process (>=15 minutes), so the job was cancelled. Try using a smaller image.";
if (e.toString().includes("Not connected to image server") || e === "No available servers") return "I can't seem to contact the image servers, they might be down or still trying to start up. Please wait a little bit.";
if (e === "No available servers") return "I can't seem to contact the image servers, they might be down or still trying to start up. Please wait a little bit.";
throw e;
} finally {
if (status && await this.client.getMessage(status.channel.id, status.id).catch(() => undefined)) await status.delete();