From ae0240ef4798497851783f6650aca31c0032fb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hor=C3=A1=C4=8Dek?= Date: Wed, 8 Apr 2020 21:47:56 +0200 Subject: [PATCH] emoji replace " with ' --- commands/emoji.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/emoji.js b/commands/emoji.js index f5a747a..b95bbea 100644 --- a/commands/emoji.js +++ b/commands/emoji.js @@ -20,11 +20,11 @@ exports.run = async (client, message, args) => { }; var ID; - var format = ".png" + var format = '.png' var string = args[0].replace(/\D/g,''); - if(args[0].charAt(1) == "a" && args[0].charAt(2) == ":") { - format = ".gif" + if(args[0].charAt(1) == 'a' && args[0].charAt(2) == ':') { + format = '.gif' }; if(string.length > 18) { @@ -39,6 +39,6 @@ exports.run = async (client, message, args) => { - message.channel.send("https://cdn.discordapp.com/emojis/" + ID + format) + message.channel.send('https://cdn.discordapp.com/emojis/' + ID + format) }; \ No newline at end of file