Skip to content
Permalink
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 = [msg.author]
for user in users
embed = new Discord.RichEmbed()
.setColor '#448aff'
.setURL user.displayAvatarURL
.setTitle user.username
.setDescription "Profile image"
.setImage user.displayAvatarURL
msg.channel.send embed
module.exports = {
name: "Profile Image"
regex: /^(img|pfp|avatar)(\s+|$)/i
handler: handler
help:
short: "-h pfp [...] ::
Returns your (or someone else’s) profile image as a URL"
long: """
```asciidoc
=== 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.