Advertisement
xxxKookie

Ontime

Mar 6th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const Discord = require("discord.js");
  2. const moment = require("moment")
  3. require("moment-duration-format")
  4.  
  5. exports.run = (bot, message, args) => {
  6.     message.delete().catch(O_o=>{});
  7.  
  8.     let duration = moment.duration(bot.uptime).format('D [d], H [h], m [m], s [s]');
  9.     let nomeeapelido = message.guild.member(message.author.id).nickname || message.author.username;
  10.  
  11.     message.channel.send(`**${message.author}**, estou online à: **${duration}**`);
  12. }
  13.  
  14. exports.help = {
  15. name: "ontime"
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement