(v4.1) Additional autoclose/autodelete features

This commit is contained in:
DJj123dj
2025-11-04 19:53:40 +01:00
parent e55438cc67
commit 4b485adf82
8 changed files with 11 additions and 9 deletions
+6
View File
@@ -28,6 +28,12 @@ export const registerActions = async () => {
ticket.get("opendiscord:open").value = true
ticket.get("opendiscord:busy").value = true
if (generalConfig.data.system.disableAutocloseAfterReopen){
//disable autoclose after reopen
ticket.get("opendiscord:autoclose-enabled").value = false
ticket.get("opendiscord:autoclose-hours").value = 0
}
//update stats
await opendiscord.stats.get("opendiscord:global").setStat("opendiscord:tickets-reopened",1,"increase")
await opendiscord.stats.get("opendiscord:user").setStat("opendiscord:tickets-reopened",user.id,1,"increase")