Renamed gif to raw and fixed message, removed GOOGLE variable from .env.example
This commit is contained in:
parent
a52b05d8b7
commit
93d2b0e5ce
2 changed files with 5 additions and 7 deletions
|
@ -33,8 +33,6 @@ PROCESSING_EMOJI=
|
||||||
|
|
||||||
# Put Mashape/RapidAPI key here
|
# Put Mashape/RapidAPI key here
|
||||||
MASHAPE=
|
MASHAPE=
|
||||||
# Put Google API key here
|
|
||||||
GOOGLE=
|
|
||||||
# Put DBL/top.gg token here
|
# Put DBL/top.gg token here
|
||||||
DBL=
|
DBL=
|
||||||
# Put Tenor API key here (used for obtaining raw tenor GIF urls)
|
# Put Tenor API key here (used for obtaining raw tenor GIF urls)
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
const Command = require("../../classes/command.js");
|
const Command = require("../../classes/command.js");
|
||||||
const imageDetect = require("../../utils/imagedetect.js");
|
const imageDetect = require("../../utils/imagedetect.js");
|
||||||
|
|
||||||
class GifCommand extends Command {
|
class RawCommand extends Command {
|
||||||
async run() {
|
async run() {
|
||||||
this.message.channel.sendTyping();
|
this.message.channel.sendTyping();
|
||||||
const image = await imageDetect(this.client, this.message);
|
const image = await imageDetect(this.client, this.message);
|
||||||
if (image === undefined) return "You need to provide an image with a QR code to read!";
|
if (image === undefined) return "You need to provide an image to get a raw URL!";
|
||||||
return image.path;
|
return image.path;
|
||||||
}
|
}
|
||||||
|
|
||||||
static description = "Gets a direct GIF URL (useful for saving GIFs from sites like Tenor)";
|
static description = "Gets a direct image URL (useful for saving GIFs from sites like Tenor)";
|
||||||
static aliases = ["getgif", "giflink"];
|
static aliases = ["gif", "getgif", "giflink", "imglink", "getimg", "rawgif", "rawimg"];
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = GifCommand;
|
module.exports = RawCommand;
|
Loading…
Reference in a new issue