This commit is contained in:
Daniel Odendahl Jr
2017-09-23 23:15:21 +00:00
parent 67c2e38b56
commit a91b4ae3af
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -30,6 +30,7 @@ module.exports = class RandomPersonCommand extends Command {
.get('https://randomuser.me/api/')
.query({
gender,
nat: 'us,gb,au',
noinfo: ''
});
const data = body.results[0];
@@ -41,15 +42,13 @@ module.exports = class RandomPersonCommand extends Command {
.addField(' Last Name',
data.name.last.toUpperCase(), true)
.addField(' Title',
data.name.title.toUpperCase(), true)
`${data.name.title.toUpperCase()}.`, true)
.addField(' Gender',
data.gender.toUpperCase(), true)
.addField(' Username',
data.login.username, true)
.addField(' Password',
data.login.password, true)
.addField(' Email',
data.email, true)
.addField(' Phone',
data.phone, true)
.addField(' Cell',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "42.7.0",
"version": "42.7.1",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {