Skip to content

Commit 58fd44f

Browse files
committed
Config bugfix in ot-ticket-forms plugin
1 parent 9882271 commit 58fd44f

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

open-ticket/ot-ticket-forms/config/checkerStructures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { api } from "#opendiscord";
22

33
export const formsConfigStructure = new api.ODCheckerArrayStructure("ot-ticket-forms:forms",{allowedTypes:["object"],propertyChecker:new api.ODCheckerObjectStructure("ot-ticket-forms:forms",{children:[
44
//FORM STRUCTURE
5-
{key:"id",optional:false,priority:0,checker:new api.ODCheckerCustomStructure_UniqueId("ot-ticket-forms:form-id","ot-forms","form-id",{regex:/^[A-Za-z0-9-éèçàêâôûîñ]+$/,minLength:3,maxLength:40})},
5+
{key:"id",optional:false,priority:0,checker:new api.ODCheckerCustomStructure_UniqueId("ot-ticket-forms:form-id","ot-ticket-forms","form-id",{regex:/^[A-Za-z0-9-éèçàêâôûîñ]+$/,minLength:3,maxLength:40})},
66
{key:"name",optional:false,priority:0,checker:new api.ODCheckerStringStructure("ot-ticket-forms:form-name",{minLength:1,maxLength:45})},
77
{key:"description",optional:false,priority:0,checker:new api.ODCheckerStringStructure("ot-ticket-forms:form-description",{maxLength:4096})},
88
{key:"color",optional:false,priority:0,checker:new api.ODCheckerCustomStructure_HexColor("ot-ticket-forms:form-color",true,false)},

open-ticket/ot-ticket-forms/config/configRegistration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { formsConfigStructure } from "./checkerStructures";
33

44
//REGISTER CONFIG
55
opendiscord.events.get("onConfigLoad").listen((configManager) => {
6-
configManager.add(new api.ODJsonConfig("ot-ticket-forms:config", "config.json", "./plugins/ot-forms/"));
6+
configManager.add(new api.ODJsonConfig("ot-ticket-forms:config", "config.json", "./plugins/ot-ticket-forms/"));
77
});
88

99
//REGISTER CHECKER

open-ticket/ot-ticket-forms/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ opendiscord.events.get("afterCodeExecuted").listen(async () => {
2020
for(const formConfig of formsConfig) {
2121
formConfig.questions.sort((a, b) => a.position - b.position);
2222
}
23-
opendiscord.log("Plugin \"ot-forms\" restoring answers...", "plugin");
23+
opendiscord.log("Plugin \"ot-ticket-forms\" restoring answers...", "plugin");
2424
await OTForms_AnswersManager.restore();
2525
})
2626

-1 Bytes
Binary file not shown.

open-ticket/ot-ticket-forms/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name":"OT Ticket Forms",
33
"id":"ot-ticket-forms",
4-
"version":"1.0.1",
4+
"version":"1.0.2",
55
"startFile":"index.ts",
66

77
"enabled":true,

0 commit comments

Comments
 (0)