Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- const moment = require('moment');
- require('moment-duration-format');
- exports.run = (client, message, args) => {
- const embed = new Discord.RichEmbed()
- .setTitle("Bot Uptime")
- .addField('Uptime:', moment.duration(client.uptime).format('d [days], h [hours], m [minutes], s [seconds]', { trim: "small" }), true)
- .setColor(0x00A2E8)
- message.channel.send(embed)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement