From 75bed3f5dda9b0ac71ba060d99ce5ca4d5b32271 Mon Sep 17 00:00:00 2001 From: Two Date: Mon, 27 Jul 2020 10:43:25 -0400 Subject: [PATCH] Update ping.js --- commands/ping.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/ping.js b/commands/ping.js index e69206c..f476a2b 100644 --- a/commands/ping.js +++ b/commands/ping.js @@ -12,6 +12,8 @@ module.exports = { description: supportbot.PingDesc, execute(message, args) { + if (supportbot.DeleteMessages == "true") message.delete(); + let ping = Date.now() - message.createdTimestamp + " ms"; const PingCommandEmbed = new Discord.MessageEmbed() @@ -20,4 +22,4 @@ module.exports = { message.channel.send({ embed: PingCommandEmbed }); } -}; \ No newline at end of file +};