Change all vars to const or let

This commit is contained in:
SileNce5k 2021-07-13 01:01:02 +02:00
parent 0d7734958c
commit ce1936df62
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
5 changed files with 9 additions and 8 deletions

View file

@ -9,12 +9,13 @@ module.exports = {
message.channel.send("no emoji");
return;
}
let extension = ".png"
if (args[0].charAt(1) == "a") {
var extension = ".gif";
} else
var extension = ".png"
extension = ".gif";
}
var num = emoji.split(":")[2];
let num = emoji.split(":")[2];
try {
num = num.slice(0, -1);
} catch (e) {