diff --git a/commands/hug.js b/commands/hug.js index 708e902..dc4add0 100644 --- a/commands/hug.js +++ b/commands/hug.js @@ -5,7 +5,17 @@ module.exports = { execute(client, message, args) { const messageAuthor = message.author const taggedUser = message.mentions.users.first(); - const embed = { + const gifchoices = [ + "https://media1.tenor.com/images/684efd91473dcfab34cb78bf16d211cf/tenor.gif?itemid=14495459", + "https://cdn.lowgif.com/medium/d26c65f2d66be540-merriberri-graphic-arts-services-requests.gif", + "https://cdn.lowgif.com/full/91e3f30773596637-.gif", + "https://thumbs.gfycat.com/WealthyWastefulBluemorphobutterfly-size_restricted.gif", + "https://data.whicdn.com/images/294164107/original.gif", + "https://media1.tenor.com/images/e5e7779385d003db13396e03b7fd1024/tenor.gif?itemid=16619907" + ]; + const index = Math.floor(Math.random() * (gifchoices.length - 1) + 2); + var gif = (gifchoices[index]); + const embed = { "title": " Hug", "description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + messageAuthor + ">!", "color": 8311585, @@ -14,7 +24,7 @@ module.exports = { "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" }, "image": { - "url": "https://i.imgur.com/r9aU2xv.gif?noredirect" + "url": gif } }