diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2021-07-29 16:00:22 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2021-07-29 16:00:22 -0400 |
| commit | 06dd6383d7a239817c2a9724465896ef7da70bc2 (patch) | |
| tree | 8c5f63e6adc1a5cd47737d88e44fd7c76f325ea2 /commands/avatarurl.js | |
| parent | ffc85798c04897d1ddaed61a9be40e5bb0a8792f (diff) | |
| download | AleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.tar.gz AleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.tar.bz2 AleeBot-06dd6383d7a239817c2a9724465896ef7da70bc2.zip | |
Big changes
Diffstat (limited to 'commands/avatarurl.js')
| -rw-r--r-- | commands/avatarurl.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/commands/avatarurl.js b/commands/avatarurl.js index 7c50e2c..2c796f4 100644 --- a/commands/avatarurl.js +++ b/commands/avatarurl.js @@ -1,7 +1,7 @@ /** ************************************** * * avatarurl: Command for AleeBot - * Copyright (C) 2017-2020 Alee Productions + * 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 @@ -18,11 +18,17 @@ * * *************************************/ module.exports.run = async (client, message) => { - message.reply(message.author.avatarURL({ dynamic: true, format: 'png', size: 1024 })); + 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: [], + aliases: ['pic'], guildOnly: false, }; exports.help = { |
