From c1832b63c519c6fb10a1753d9d5aa1f5212fba88 Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 16 Feb 2021 04:17:23 +0100 Subject: [PATCH] Fixed so the variable doesn't assign a value more than once --- commands/emoji.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/emoji.js b/commands/emoji.js index 5fed9d8..d555a36 100644 --- a/commands/emoji.js +++ b/commands/emoji.js @@ -8,10 +8,10 @@ module.exports = { message.channel.send("no emoji"); return; } - var extension = ".png"; if (args[0].charAt(1) == "a") { - extension = ".gif"; - } + var extension = ".gif"; + } else + var extension = ".png" var num = emoji.split(":")[2]; try {