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 = (bot, message, args) => {
- message.delete().catch(O_o=>{});
- let duration = moment.duration(bot.uptime).format('D [d], H [h], m [m], s [s]');
- let nomeeapelido = message.guild.member(message.author.id).nickname || message.author.username;
- message.channel.send(`**${message.author}**, estou online à: **${duration}**`);
- }
- exports.help = {
- name: "ontime"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement