aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorpokesudenk <thisis@notarealema.il>2018-02-24 20:30:47 -0500
committerpokesudenk <thisis@notarealema.il>2018-02-24 20:30:47 -0500
commitfb86857f8de42c2eec2d0488ea6037c562666dd9 (patch)
tree472ad7936dcbaefd29e563ec783e6c21a453ab15 /commands
parent0c0c1d837c7e5bb49fb9bddfde884f43f442a949 (diff)
parentf6c8e529eb06a3d1121feeebb5de6c97eefbc571 (diff)
downloadPokeBot-fb86857f8de42c2eec2d0488ea6037c562666dd9.tar.gz
PokeBot-fb86857f8de42c2eec2d0488ea6037c562666dd9.tar.bz2
PokeBot-fb86857f8de42c2eec2d0488ea6037c562666dd9.zip
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
Diffstat (limited to 'commands')
-rw-r--r--commands/Fun/story.js8
-rw-r--r--commands/Utility/userinfo.js18
2 files changed, 22 insertions, 4 deletions
diff --git a/commands/Fun/story.js b/commands/Fun/story.js
index 3f29d38..4f421c5 100644
--- a/commands/Fun/story.js
+++ b/commands/Fun/story.js
@@ -13,10 +13,10 @@ exports.run = async (bot, msg) => {
];
const storySelected = [Math.floor(Math.random() * stories.length)];
const embed = new Discord.RichEmbed()
- .setColor(0x00ae86)
- .setTitle(`Pokebot Storytime`)
- .setDescription(stories[storySelected])
- .setFooter('PokeBot Beta');
+ .setColor(0x00ae86)
+ .setTitle('Pokebot Storytime')
+ .setDescription(stories[storySelected])
+ .setFooter('PokeBot Beta');
msg.channel.send(embed);
});
};
diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js
index 851dc01..0154d98 100644
--- a/commands/Utility/userinfo.js
+++ b/commands/Utility/userinfo.js
@@ -1,4 +1,5 @@
exports.run = async (bot, msg) => {
+<<<<<<< HEAD
const { RichEmbed } = require('discord.js');
if (!msg.mentions.users.first()) {
var user = msg.author;
@@ -13,6 +14,23 @@ exports.run = async (bot, msg) => {
.addField('Account Creation Date', user.user.createdAt)
.addField('Join Guild Date', user.joinedAt)
.addField('Names', 'Display Name: ' + user.displayName + `\nUsername: ${user.user.tag}`)
+=======
+ const { RichEmbed } = require('discord.js');
+ let user;
+ if (!msg.mentions.members.first()) {
+ user = msg.member;
+ } else {
+ user = msg.mentions.members.first();
+ }
+ msg.channel.send(
+ new RichEmbed()
+ .setColor(0x00ae86)
+ .setTitle('User Information')
+ .addField('User ID', user.id)
+ .addField('Account Creation Date', user.user.createdAt)
+ .addField('Join Guild Date', user.joinedAt)
+ .addField('Names', 'Display Name: ' + user.displayName + `\nUsername: ${user.user.tag}`)
+>>>>>>> f6c8e529eb06a3d1121feeebb5de6c97eefbc571
);
};