From 7f0f633aa9c32ca1e2a0d92708de081b95212efd Mon Sep 17 00:00:00 2001 From: = Date: Tue, 27 Jul 2021 15:04:34 -0400 Subject: [PATCH] error reporting --- commands/gif.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/gif.js b/commands/gif.js index 1183d64..289c0bb 100644 --- a/commands/gif.js +++ b/commands/gif.js @@ -15,7 +15,10 @@ module.exports = { const client = message.client; if (!client.gifs.has(file.name)) { tenor.Search.Query(file.name, 1).then(res => { - if (res[0] == undefined) return; + if (res[0] == undefined) { + message.reply('Sorry I was unable to find a GIF of ' + file.name); + return; + }; const gifInfo = { 'name': file.name, 'embed_url': res[0].media[0].gif.url