mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
uptime with days
This commit is contained in:
parent
ce12ba0bc6
commit
94038f2001
1 changed files with 2 additions and 2 deletions
|
@ -7,11 +7,11 @@ module.exports = {
|
||||||
usage: '',
|
usage: '',
|
||||||
trusted: 0,
|
trusted: 0,
|
||||||
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
|
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
|
||||||
const time = moment.utc(Math.floor(performance.now())).format('H [hours], m [minutes], s [seconds]')
|
const time = moment.utc(Math.floor(performance.now())).format('D [days], H [hours], m [minutes], s [seconds]')
|
||||||
bot.tellraw(selector, [{ text: 'The bot\'s uptime is ', color: 'white' }, { text: time, color: 'green' }])
|
bot.tellraw(selector, [{ text: 'The bot\'s uptime is ', color: 'white' }, { text: time, color: 'green' }])
|
||||||
},
|
},
|
||||||
discordExecute (bot, username, sender, prefix, args, channeldc, message, config) {
|
discordExecute (bot, username, sender, prefix, args, channeldc, message, config) {
|
||||||
const time = moment.utc(Math.floor(performance.now())).format('H [hours], m [minutes], s [seconds]')
|
const time = moment.utc(Math.floor(performance.now())).format('D [days], H [hours], m [minutes], s [seconds]')
|
||||||
const Embed = new EmbedBuilder()
|
const Embed = new EmbedBuilder()
|
||||||
.setColor(config.discord.embedsColors.normal)
|
.setColor(config.discord.embedsColors.normal)
|
||||||
.setTitle('Bot\'s Uptime')
|
.setTitle('Bot\'s Uptime')
|
||||||
|
|
Loading…
Reference in a new issue