Add uptime command

This commit is contained in:
SileNce5k 2021-03-09 01:59:35 +01:00
parent b3e882d6e4
commit 7a9deac608
No known key found for this signature in database
GPG key ID: C507260E7F2583AD
2 changed files with 11 additions and 0 deletions

10
commands/uptime.js Normal file
View file

@ -0,0 +1,10 @@
const prettyMS = require('pretty-ms')
module.exports = {
name: 'uptime',
description: 'Returns how long discord bot has been running',
execute(message, client) {
message.channel.send(`${prettyMS(client.uptime, {verbose: true})}`)
}
};