aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorpokesudenk <thisis@notarealema.il>2018-02-24 19:52:20 -0500
committerpokesudenk <thisis@notarealema.il>2018-02-24 19:52:20 -0500
commitf3fbfe2eb4ac59a9966659d0257f43be55e648f5 (patch)
tree1e384cc9a3ed9775a19a9e5cc38eb66641366e91 /commands
parent2414fb821c982f18b562885a04b47d05aa2ec723 (diff)
downloadPokeBot-f3fbfe2eb4ac59a9966659d0257f43be55e648f5.tar.gz
PokeBot-f3fbfe2eb4ac59a9966659d0257f43be55e648f5.tar.bz2
PokeBot-f3fbfe2eb4ac59a9966659d0257f43be55e648f5.zip
userinfo comm; to be expanded on later
Diffstat (limited to 'commands')
-rw-r--r--commands/Utility/userinfo.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js
new file mode 100644
index 0000000..bdcb661
--- /dev/null
+++ b/commands/Utility/userinfo.js
@@ -0,0 +1,24 @@
+exports.run = async (bot, msg, args) => {
+ const user = msg.mentions.members.first();
+
+ msg.channel.send(
+ new RichEmbed()
+ .setTitle(`Information for ${user.user.tag}`)
+ .addField('User ID', user.id)
+ .addField('Account Creation Date', member.user.createdAt)
+ .addField('Join Guild Date', user.joinedAt)
+ .addField('Ban Count', 'This user has been banned from ' + parseInt(banCounts[user.id]) + ' guilds.')
+ );
+ };
+
+ exports.conf = {
+ aliases: ['uinfo', 'userinformation'],
+ guildOnly: true,
+ };
+
+ exports.help = {
+ name: 'userinfo',
+ description: 'Shows information about the mentioned user',
+ usage: '@user',
+ };
+ \ No newline at end of file