Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (32 sloc) 1.13 KB
#! ========================================
#! Profile Image
Discord = require 'discord.js'
handler = (msg, match) ->
users = msg.mentions.users.array()
if not users.length then users = []
for user in users
embed = new Discord.RichEmbed()
.setColor '#448aff'
.setURL user.displayAvatarURL
.setTitle user.username
.setDescription "Profile image"
.setImage user.displayAvatarURL embed
module.exports = {
name: "Profile Image"
regex: /^(img|pfp|avatar)(\s+|$)/i
handler: handler
short: "-h pfp [...] ::
Returns your (or someone else’s) profile image as a URL"
long: """
=== Help for Profile Image ===
*Aliases*: img, pfp, avatar
-h pfp :: Returns your profile image in a nice box with a URL.
-h pfp [@user @user ...] :: Returns those users’ profile image.
Note: You must mention each member directly. @[role], @here,
and @everyone will not work.
You can’t perform that action at this time.