Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update commands/uptime.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ray committed Nov 23, 2018
1 parent e3b90c6 commit e26ef4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions commands/uptime.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ const moment = require('moment');
require('moment-duration-format');


exports.run = (client, message, args, level) => { // eslint-disable-line no-unused-vars
exports.run = (client, message) => {
if (talkedRecently.has(message.author.id) && !message.member.roles.has('490364533550874644')) {

message.channel.send('You are being rate limited!' + message.author);
} else {
const duration = moment.duration(client.uptime).format(' D [days], H [hrs], m [mins], s [secs]');
const embed = new Discord.RichEmbed()
.setAuthor(`${client.user.username}`, `${client.user.avatarURL}`)
//.setAuthor(`${client.user.username}`, `${client.user.avatarURL}`)
.setThumbnail(client.user.avatarURL)
.setColor(message.member.displayColor)
.addField('• Uptime', `${duration}`, false)
.addField('• API Latency', `${Math.round(client.ping)}ms`, true)
.addField('• API Ping Ratings', `${client.pings.join(', ')}`, true)
.setFooter(`${client.user.username} | Beta - Master`);
.setFooter(client.user.username, client.user.avatarURL)
.setTimestamp();


message.channel.send(embed);
Expand Down

0 comments on commit e26ef4a

Please sign in to comment.