From 02ce211b3f3870535c463170393bff1af3164137 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 9 Jun 2022 18:02:44 -0400 Subject: [PATCH] Changed how .gif commands are handled --- dot-commands/gif.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dot-commands/gif.js b/dot-commands/gif.js index 0568a6a..a2cace9 100644 --- a/dot-commands/gif.js +++ b/dot-commands/gif.js @@ -12,7 +12,7 @@ module.exports = { description: 'Send a GIF', usage: '.gif', execute(message, commandData) { - if (message.deletable) message.delete(); + // if (message.deletable) message.delete(); const client = message.client; if (!client.gifs.has(commandData.args)) { tenor.Search.Query(commandData.args, 1).then(res => { @@ -22,8 +22,9 @@ module.exports = { }; commandData.embed_url = res[0].media[0].gif.url; // message.reply(fn.embeds.gif(commandData)); - message.channel.send(`> ${commandData.author} - ${commandData.args}.gif`); - message.channel.send(commandData.embed_url); + // message.channel.send(`> ${commandData.author} - ${commandData.args}.gif`); + // message.channel.send(commandData.embed_url); + message.reply(commandData.embed_url); }).catch(err => console.error(err)); } else { // message.reply(commandData.args + ' requested by ' + message.author.username + '\n' + client.gifs.get(commandData.args).embed_url);