diff --git a/commands/close.js b/commands/close.js index d45fae6..3610fe6 100644 --- a/commands/close.js +++ b/commands/close.js @@ -13,6 +13,8 @@ module.exports = { description: supportbot.CloseTicketDesc, execute(message, args) { + if (supportbot.DeleteMessages == "true") message.delete(); + console.log(`\u001b[32m`, `[${supportbot.Bot_Name}]:`, `\u001b[32m`, `${message.author.tag} has executed ${supportbot.Prefix}${supportbot.CloseTicket}!`); if (!message.channel.name.startsWith( `${supportbot.TicketChannel}-` )) { @@ -144,4 +146,4 @@ module.exports = { } } -}; \ No newline at end of file +};