Split commands into subdirectories
* Move command files into directories * Edit relative paths * Update gitignore * Finish support for commands in subdir * Split up getCommandFiles into own function * Add support for subdirs on help command
This commit is contained in:
parent
8993eeaf7a
commit
e7cdd425d1
21 changed files with 55 additions and 35 deletions
19
commands/info/pfp.js
Normal file
19
commands/info/pfp.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
const parseMention = require("../../util/parseMention.js")
|
||||
|
||||
module.exports = {
|
||||
name: 'pfp',
|
||||
description: 'Returns profile picture',
|
||||
moreHelp: ["Returns your profile picture if no arguments are provided",
|
||||
"Argument can be username, nickname, userid, and mention"],
|
||||
execute({message, args}) {
|
||||
let info;
|
||||
if (!args[0]) {
|
||||
info = message.author.id;
|
||||
} else {
|
||||
info = parseMention(args[0], message.guild);
|
||||
}
|
||||
let user = message.guild.members.cache.get(info);
|
||||
|
||||
message.channel.send(user.user.avatarURL({ format: 'png', dynamic: true, size: 4096 }))
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue