Add uptime command
This commit is contained in:
parent
b3e882d6e4
commit
7a9deac608
2 changed files with 11 additions and 0 deletions
10
commands/uptime.js
Normal file
10
commands/uptime.js
Normal 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})}`)
|
||||
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue