diff --git a/commands/bonk.js b/commands/bonk.js index 11e0fea..99da59f 100644 --- a/commands/bonk.js +++ b/commands/bonk.js @@ -3,8 +3,8 @@ module.exports = { name: "bonk", description: "Bonks an user!", execute(client, message, args) { - const messageAuthor = message.author const taggedUser = message.mentions.users.first(); + const {footerTxt} = require('../config.json'); const errorembed = { "title": "<:AnitroxError:809651936563429416> Error", "color": 13632027, @@ -27,11 +27,11 @@ module.exports = { const embed = { "title": " Bonk", - "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif" diff --git a/commands/cheese.js b/commands/cheese.js index 6f78914..76aae42 100644 --- a/commands/cheese.js +++ b/commands/cheese.js @@ -3,10 +3,8 @@ module.exports = { name: "cheese", description: "Cheese an user, or run just ``n!cheese`` for a surprise :eyes:", execute(client, message, args) { - const messageAuthor = message.author const taggedUser = message.mentions.users.first(); - //--------------------------------- - + const {footerTxt} = require('../config.json'); if(!taggedUser) { return message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4"); @@ -16,11 +14,11 @@ module.exports = { const embed = { "title": ":cheese: Cheesed", - "description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + message.author + ">!", "color": 16312092, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png" diff --git a/commands/cuddle.js b/commands/cuddle.js index 4f08ccf..b518f31 100644 --- a/commands/cuddle.js +++ b/commands/cuddle.js @@ -3,9 +3,8 @@ module.exports = { name: "cuddle", description: "Cuddle an user!", execute(client, message, args) { - const messageAuthor = message.author const taggedUser = message.mentions.users.first(); - + const {footerTxt} = require('../config.json'); // -------------------------------------- const gifchoices = [ "https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif", @@ -22,11 +21,11 @@ module.exports = { } const embed = { "title": ":heart: Cuddle", - "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/hug.js b/commands/hug.js index 47f6cf7..4c17632 100644 --- a/commands/hug.js +++ b/commands/hug.js @@ -3,7 +3,7 @@ module.exports = { name: "hug", description: "Hugs an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); const gifchoices = [ "https://cdn.discordapp.com/attachments/803658122299572255/807670647920001044/hug2.gif", @@ -17,8 +17,8 @@ module.exports = { "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": message.author.displayAvatarURL() }, "fields": [ { @@ -37,11 +37,11 @@ module.exports = { var gif = (gifchoices[index]); const embed = { "title": " Hug", - "description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + messageAuthor + ">!", + "description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + message.author + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/kiss.js b/commands/kiss.js index b220904..e4b8fca 100644 --- a/commands/kiss.js +++ b/commands/kiss.js @@ -3,7 +3,7 @@ module.exports = { name: "kiss", description: "Kisses an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); @@ -22,8 +22,8 @@ module.exports = { "title": "<:AnitroxError:809651936563429416> Error", "color": 13632027, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { diff --git a/commands/leskiss.js b/commands/leskiss.js index fa4982f..a94c328 100644 --- a/commands/leskiss.js +++ b/commands/leskiss.js @@ -6,8 +6,8 @@ module.exports = { name: "leskiss", description: "Lesbian kiss <:lesbian:803831629428686849>", execute(client, message, args) { - const messageAuthor = message.author const taggedUser = message.mentions.users.first(); + const {footerTxt} = require('../config.json'); // -------------------------------------- const gifchoices = [ "https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif", @@ -34,8 +34,8 @@ module.exports = { "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { diff --git a/commands/lick.js b/commands/lick.js index 87ab2e8..7d10aef 100644 --- a/commands/lick.js +++ b/commands/lick.js @@ -3,7 +3,7 @@ module.exports = { name: "lick", description: "Licks an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); //--------------------------------------------------- // -------------------------------------- @@ -41,11 +41,11 @@ if(!taggedUser) { const embed = { "title": " Lick", - "description": "<@" + taggedUser + "> You have been licked by <@" + messageAuthor + ">!", + "description": "<@" + taggedUser + "> You have been licked by <@" + message.author + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif" diff --git a/commands/nom.js b/commands/nom.js index b67fa75..d77eddd 100644 --- a/commands/nom.js +++ b/commands/nom.js @@ -3,7 +3,7 @@ module.exports = { name: "nom", description: "Noms an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); // -------------------------------------- @@ -43,8 +43,8 @@ module.exports = { "description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/opensource.js b/commands/opensource.js index 946ecab..342558d 100644 --- a/commands/opensource.js +++ b/commands/opensource.js @@ -2,13 +2,14 @@ module.exports = { name: 'opensource', description: 'Attributions to open source components used by Anitrox', execute(client, message, args){ - const embed = { + const {footerTxt} = require('../config.json'); + const embed = { "title": "Component Attribution", "description": "Some parts of Anitrox are using open source code, and their attributions are avaliable here!", "color": 52508, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "thumbnail": { "url": "https://cdn.discordapp.com/attachments/803658122299572255/838854256471703602/793885335498522685.png" diff --git a/commands/pat.js b/commands/pat.js index 0e05524..adc8ee8 100644 --- a/commands/pat.js +++ b/commands/pat.js @@ -3,7 +3,7 @@ module.exports = { name: "pat", description: "Pats an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); // -------------------------------------- @@ -21,8 +21,8 @@ module.exports = { "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { @@ -42,8 +42,8 @@ module.exports = { "description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/poke.js b/commands/poke.js index 6b8ebd0..d9a1fd5 100644 --- a/commands/poke.js +++ b/commands/poke.js @@ -21,8 +21,8 @@ module.exports = { "title": "<:AnitroxError:809651936563429416> Error", "color": 9442302, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { @@ -42,8 +42,8 @@ module.exports = { "description": "<@" + taggedUser + "> You have been poked by <@" + messageAuthor + ">!", "color": 8311585, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif diff --git a/commands/slap.js b/commands/slap.js index 94ebaa9..106e0af 100644 --- a/commands/slap.js +++ b/commands/slap.js @@ -3,7 +3,7 @@ module.exports = { name: "slap", description: "Slaps an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); //--------------------------------------------------- @@ -12,8 +12,8 @@ const errorembed = { "title": "<:AnitroxError:809651936563429416> Error", "color": 13632027, "footer": { - "icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "fields": [ { @@ -33,8 +33,8 @@ if(!taggedUser) { "description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943" diff --git a/commands/snuggle.js b/commands/snuggle.js index 3869711..583219c 100644 --- a/commands/snuggle.js +++ b/commands/snuggle.js @@ -3,7 +3,7 @@ module.exports = { name: "snuggle", description: "Snuggle an user!", execute(client, message, args) { - const messageAuthor = message.author + const {footerTxt} = require('../config.json'); const taggedUser = message.mentions.users.first(); // -------------------------------------- @@ -22,8 +22,8 @@ module.exports = { "description": "<@" + taggedUser + ">" + " You have been snuggled by " + "<@" + messageAuthor + ">!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": gif