Added gif, detect if any image servers are disconnected
This commit is contained in:
parent
0fbc165154
commit
41c8be04cf
7 changed files with 523 additions and 437 deletions
|
@ -52,7 +52,7 @@ class ImageCommand extends Command {
|
|||
|
||||
if (this.constructor.requiresImage) {
|
||||
try {
|
||||
const image = await imageDetect(this.client, this.message);
|
||||
const image = await imageDetect(this.client, this.message, true);
|
||||
if (image === undefined) {
|
||||
collections.runningCommands.delete(this.message.author.id);
|
||||
return this.constructor.noImage;
|
||||
|
@ -61,7 +61,7 @@ class ImageCommand extends Command {
|
|||
return "That image is too large!";
|
||||
} else if (image.type === "tenorlimit") {
|
||||
collections.runningCommands.delete(this.message.author.id);
|
||||
return "I've been rate-limited by Tenor. Please try uploading the GIF elsewhere.";
|
||||
return "I've been rate-limited by Tenor. Please try uploading your GIF elsewhere.";
|
||||
}
|
||||
magickParams.path = image.path;
|
||||
magickParams.type = image.type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue