Minor Bugfixes
This commit is contained in:
@@ -174,7 +174,7 @@
|
||||
|
||||
"helpExplanation":"`<name>` => required parameter\n`[name]` => optional parameter",
|
||||
"statsReset":"The bot statistics have been reset.",
|
||||
"statsError":"nable to retrieve ticket statistics.\n{0} is not a valid ticket.",
|
||||
"statsError":"Unable to retrieve ticket statistics.\n{0} is not a valid ticket.",
|
||||
"blacklistAdd":"{0} has been blacklisted.",
|
||||
"blacklistRemove":"{0} has been released.",
|
||||
"blacklistGetSuccess":"{0} is blacklisted!",
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
|
||||
"helpExplanation":"`<name>` => required parameter\n`[name]` => optional parameter",
|
||||
"statsReset":"The bot statistics have been reset.",
|
||||
"statsError":"nable to retrieve ticket statistics.\n{0} is not a valid ticket.",
|
||||
"statsError":"Unable to retrieve ticket statistics.\n{0} is not a valid ticket.",
|
||||
"blacklistAdd":"{0} has been blacklisted.",
|
||||
"blacklistRemove":"{0} has been released.",
|
||||
"blacklistGetSuccess":"{0} is blacklisted!",
|
||||
|
||||
@@ -111,6 +111,7 @@ export class ODOpenTicketMain extends api.ODMain {
|
||||
|
||||
//OPEN TICKET
|
||||
this.fuses = new api.ODFuseManager<api.ODOpenTicketFuseList>({
|
||||
priorityLoading:true,
|
||||
questionLoading:true,
|
||||
optionLoading:true,
|
||||
panelLoading:true,
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
import * as api from "@open-discord-bots/framework/api"
|
||||
|
||||
export interface ODOpenTicketFuseList {
|
||||
/**Load the default Open Ticket ticket priority levels. */
|
||||
priorityLoading:boolean,
|
||||
/**Load the default Open Ticket questions (from `config/questions.json`) */
|
||||
questionLoading:boolean,
|
||||
/**Load the default Open Ticket options (from `config/options.json`) */
|
||||
|
||||
+1
-1
@@ -415,7 +415,7 @@ const main = async () => {
|
||||
|
||||
//load priority levels
|
||||
opendiscord.log("Loading prioritiy levels...","system")
|
||||
if (opendiscord.sharedFuses.getFuse("priorityLoading")){
|
||||
if (opendiscord.fuses.getFuse("priorityLoading")){
|
||||
await (await import("./data/openticket/priorityLoader.js")).loadAllPriorityLevels()
|
||||
}
|
||||
await opendiscord.events.get("onPriorityLoad").emit([opendiscord.priorities])
|
||||
|
||||
Reference in New Issue
Block a user