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 +};