Added gif, detect if any image servers are disconnected

This commit is contained in:
Essem 2021-06-28 17:59:05 -05:00
parent 0fbc165154
commit 41c8be04cf
7 changed files with 523 additions and 437 deletions

16
commands/general/gif.js Normal file
View file

@ -0,0 +1,16 @@
const Command = require("../../classes/command.js");
const imageDetect = require("../../utils/imagedetect.js");
class GifCommand extends Command {
async run() {
this.message.channel.sendTyping();
const image = await imageDetect(this.client, this.message);
if (image === undefined) return "You need to provide an image with a QR code to read!";
return image.path;
}
static description = "Gets a direct GIF URL (useful for saving GIFs from sites like Tenor)";
static aliases = ["getgif", "giflink"];
}
module.exports = GifCommand;