diff options
Diffstat (limited to 'commands/avatarurl.js')
| -rw-r--r-- | commands/avatarurl.js | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/commands/avatarurl.js b/commands/avatarurl.js index 018bc7a..2c796f4 100644 --- a/commands/avatarurl.js +++ b/commands/avatarurl.js @@ -1,7 +1,7 @@ -/**************************************** - * - * AvatarURL: Command for AleeBot - * Copyright (C) 2017-2020 Alee Productions +/** ************************************** + * + * avatarurl: Command for AleeBot + * Copyright (C) 2017-2021 Alee Productions * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -15,19 +15,25 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * + * * *************************************/ module.exports.run = async (client, message) => { - message.reply(message.author.avatarURL); + if(!message.mentions.users.first()) { + message.reply(message.author.avatarURL({ dynamic: true, format: 'png', size: 1024 })); + } else { + let targetMember; + targetMember = message.mentions.users.first(); + message.reply(targetMember.avatarURL({ dynamic: true, format: 'png', size: 1024 })) + } }; - + exports.conf = { - aliases: [], - guildOnly: false, + aliases: ['pic'], + guildOnly: false, }; exports.help = { - name: 'avatarurl', - description: 'Sends you your avatar picture.', - usage: 'avatarurl', - category: '- Fun Commands', + name: 'avatarurl', + description: 'Sends you your avatar picture.', + usage: 'avatarurl', + category: '- Fun Commands', }; |
