Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Vovex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Levatax
Vovex
Commits
dcab185e
Commit
dcab185e
authored
Feb 21, 2020
by
Levatax
Browse files
Options
Downloads
Patches
Plain Diff
Update whois.js
parent
6fcc44a4
No related branches found
No related tags found
No related merge requests found
Pipeline
#44
canceled
Feb 21, 2020
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
commands/whois.js
+3
-1
3 additions, 1 deletion
commands/whois.js
with
3 additions
and
1 deletion
commands/whois.js
+
3
−
1
View file @
dcab185e
const
Discord
=
require
(
'
discord.js
'
);
const
client
=
new
Discord
.
Client
();
const
settings
=
require
(
'
../settings.json
'
);
const
moment
=
require
(
'
moment
'
)
exports
.
run
=
(
client
,
message
,
args
)
=>
{
let
user
=
message
.
guild
.
member
(
message
.
mentions
.
users
.
first
())
||
message
.
guild
.
member
(
args
[
0
]);
...
...
@@ -11,7 +12,8 @@ exports.run = (client, message , args) => {
.
setTimestamp
()
.
addField
(
'
User:
'
,
`<@
${
user
.
id
}
>`
)
.
addField
(
'
User ID:
'
,
`
${
user
.
id
}
`
)
.
addField
(
'
Created At:
'
,
`
${
user
.
createdAt
}
`
)
.
addField
(
'
Created At:
'
,
`
${
moment
(
user
.
user
.
createdAt
).
format
(
'
lll
'
)
+
'
\n
'
+
moment
(
new
Date
()).
diff
(
user
.
user
.
createdAt
,
'
days
'
)
+
'
days ago
'
}
`
)
.
addField
(
'
Joined At:
'
,
`
${
moment
(
user
.
joinedAt
).
format
(
'
lll
'
)
+
'
\n
'
+
moment
(
new
Date
()).
diff
(
user
.
joinedAt
,
'
days
'
)
+
'
days ago
'
}
`
)
.
addField
(
'
Last Message:
'
,
`
${
user
.
lastMessage
}
`
);
return
message
.
channel
.
send
(
embed
);
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment