diff options
| author | Alee <alee14498@gmail.com> | 2018-04-14 18:10:49 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-14 18:10:49 -0400 |
| commit | ee864e482c053a7ac64ed89196e547e0913c0398 (patch) | |
| tree | 4d4145da298da94455e68f0a1254b34d98b123cc /commands/userinfo.js | |
| parent | 62ebe342d4c486219d19bce8b902c59d09cd76b4 (diff) | |
| download | AleeBot-ee864e482c053a7ac64ed89196e547e0913c0398.tar.gz AleeBot-ee864e482c053a7ac64ed89196e547e0913c0398.tar.bz2 AleeBot-ee864e482c053a7ac64ed89196e547e0913c0398.zip | |
2.7 stuff
Diffstat (limited to 'commands/userinfo.js')
| -rw-r--r-- | commands/userinfo.js | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/commands/userinfo.js b/commands/userinfo.js new file mode 100644 index 0000000..35647c3 --- /dev/null +++ b/commands/userinfo.js @@ -0,0 +1,43 @@ +/**************************************** + * + * UserInfo: Command for AleeBot + * Copyright (C) 2018 AleeCorp + * + * 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * 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) => { + const Discord = require('discord.js'); + var embed = new Discord.RichEmbed() + .setAuthor(message.author.tag, message.author.avatarURL) + .setDescription("User Information") + .addField("Names", "Username: " + message.author.username + "\nCurrent Nickname: " + message.member.displayName) + .addField("Identity", "User ID: " + message.author.id + "") + .addField("Create and Join Times", "Created account at: " + message.member.user.createdAt.toUTCString() + "\nJoined server at: " + message.member.joinedAt.toUTCString()) + .setColor('#1fd619') + message.channel.send({embed}); + + }; + + exports.conf = { + aliases: ['uinfo'], + guildOnly: false, + }; + exports.help = { + name: 'userinfo', + description: 'Tells your info.', + usage: 'userinfo', + category: '- Info Commands', + }; +
\ No newline at end of file |
