v3.5.0 push 4

This commit is contained in:
DJj123dj
2023-12-13 21:39:18 +01:00
parent d51511fdb5
commit 94510bbfb0
10 changed files with 368 additions and 11 deletions
+9
View File
@@ -43,6 +43,15 @@ module.exports = () => {
require("./ticketCloser").closeManager(clientMember,channel,prefix,"close","OTautoclose",true)
storage.delete("autocloseTickets",channel.id)
//STATS
bot.statsManager.updateGlobalStats("TICKETS_AUTOCLOSED",(current) => {
if (typeof current != "undefined") return current+1
return 1
})
bot.statsManager.updateTicketStats("STATUS",channel.id,(current) => {
return "autoclosed"
})
channel.send({embeds:[bot.embeds.commands.autocloseSignalEmbed(client.user,t.value)],components:[bot.buttons.close.closeCommandRow]})
}