From d7608c80ff1712eee20830f9b355d2c9c95dde58 Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Tue, 18 May 2021 02:17:57 -0600 Subject: [PATCH] eval timer --- commands/dev/eval.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/dev/eval.js b/commands/dev/eval.js index e269672..909d08f 100644 --- a/commands/dev/eval.js +++ b/commands/dev/eval.js @@ -16,6 +16,8 @@ module.exports = { }, execute(message, msg, args, cmd, prefix, mention, client) { try { + let timer = new Date().getTime(); + if (!client.developers.includes(message.author.id)) {return message.channel.send("Sorry, but I've got trust issues, so only me devs can go commanding me around like that.");}; if (!args.length) return message.channel.send(`Syntax: \`${prefix}eval \``); @@ -36,7 +38,7 @@ module.exports = { .setTitle('Client Evaluation') .setDescription(`\`\`\`js\n${output}\n\`\`\``) .setColor('c375f0') - .setFooter(`Natsuki`, client.user.avatarURL()) + .setFooter(`Natsuki | Evaluated in ${new Date().getTime() - timer}ms`, client.user.avatarURL()) .setTimestamp()); }).catch(error => {return message.channel.send(`Error: \`${error}\`.`);}); } catch (error) {