parent
4b6e61f066
commit
d4fdb56115
@ -1,20 +0,0 @@ |
||||
const Discord = require('discord.js'); |
||||
const spotify = require('swwrap'); |
||||
|
||||
module.exports = { |
||||
name: "", |
||||
aliases: [], |
||||
meta: { |
||||
category: '', |
||||
description: "", |
||||
syntax: '` <>`', |
||||
extra: null |
||||
}, |
||||
help: new Discord.MessageEmbed() |
||||
.setTitle("Help -> ") |
||||
.setDescription("") |
||||
.addField("Syntax", "``"), |
||||
async execute(message, msg, args, cmd, prefix, mention, client) { |
||||
if (!args.length) {return message.channel.send(`Syntax: \`${prefix}\``);} |
||||
} |
||||
}; |
@ -0,0 +1,29 @@ |
||||
const Discord = require('discord.js'); |
||||
|
||||
const Bot = require('../../models/bot'); |
||||
|
||||
const moment = require('moment'); |
||||
require('moment-precise-range-plugin'); |
||||
|
||||
module.exports = { |
||||
name: "uptime", |
||||
aliases: ['ut', 'up'], |
||||
meta: { |
||||
category: 'Misc', |
||||
description: "Shows the bot's uptime", |
||||
syntax: '`uptime`', |
||||
extra: null |
||||
}, |
||||
help: "Shows my uptime, which is how long it's been since my last restart.", |
||||
async execute(message, msg, args, cmd, prefix, mention, client) { |
||||
const bot = await Bot.findOne({finder: 'lel'}); |
||||
return message.channel.send(new Discord.MessageEmbed() |
||||
.setTitle("Uptime") |
||||
.setThumbnail(client.user.avatarURL({size: 2048})) |
||||
.setDescription(moment.preciseDiff(moment(bot.lastRestart), moment())) |
||||
.setColor('c375f0') |
||||
.setFooter("Natsuki") |
||||
.setTimestamp() |
||||
) |
||||
} |
||||
}; |
Loading…
Reference in new issue