mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-12-02 11:57:39 -05:00
13 lines
422 B
JavaScript
13 lines
422 B
JavaScript
|
/* eslint-disable max-len */
|
||
|
const {secondsToHms} = require('../util/secondToHms');
|
||
|
module.exports = {
|
||
|
name: 'uptime',
|
||
|
alias: [],
|
||
|
description: 'Shows the bot\'s uptime',
|
||
|
usage: '',
|
||
|
trusted: 0,
|
||
|
execute: function(bot) {
|
||
|
bot.core.run(`minecraft:tellraw @a ["",{"text":"The bot's uptime is ","color":"white"},{"text":"${secondsToHms(Math.floor(performance.now() / 1000))}","color":"green"}]`); return;
|
||
|
},
|
||
|
};
|