Added priority system (Part 1, Incomplete)

This commit is contained in:
DJj123dj
2025-09-14 22:04:11 +02:00
parent b07252151b
commit 415330be21
13 changed files with 254 additions and 4 deletions
+8
View File
@@ -424,6 +424,14 @@ const main = async () => {
await opendiscord.events.get("afterClientActivityInitiated").emit([opendiscord.client.activity,opendiscord.client])
}
//load priority levels
opendiscord.log("Loading prioritiy levels...","system")
if (opendiscord.defaults.getDefault("priorityLoading")){
await (await import("./data/openticket/priorityLoader.js")).loadAllPriorities()
}
await opendiscord.events.get("onPriorityLoad").emit([opendiscord.priorities])
await opendiscord.events.get("afterPrioritiesLoaded").emit([opendiscord.priorities])
//load slash commands
opendiscord.log("Loading slash commands...","system")
if (opendiscord.defaults.getDefault("slashCommandLoading")){