Moved many utility files to one big "tools" folder
This commit is contained in:
@@ -0,0 +1,328 @@
|
||||
//@ts-check
|
||||
const fs = require("fs")
|
||||
|
||||
/*////// OT DOCS GENERATOR ////////
|
||||
What does this file do?:
|
||||
Well, this file will parse the result returned from typedoc (the documentation generator).
|
||||
The resulting file will then be used in the OT Docs markdown generator to generate the Open Ticket API Reference.
|
||||
|
||||
In short:
|
||||
This file generates the documentation for Open Ticket :)
|
||||
|
||||
Contributing:
|
||||
If you want to contribute to the Open Ticket Docs, please run the following command:
|
||||
|
||||
> npm run docs
|
||||
|
||||
This will give you a "result.json" file which can then be used in the OT Docs.
|
||||
Further instructions can be found there.
|
||||
/////////////////////////////////*/
|
||||
|
||||
if (!fs.existsSync(".docs/typedoc-result.json")){
|
||||
console.log("Unable to generate documentation! Run typedoc first!")
|
||||
process.exit(1)
|
||||
}
|
||||
const result = JSON.parse(fs.readFileSync(".docs/typedoc-result.json").toString())
|
||||
const availableElements = []
|
||||
const skipElementNames = [
|
||||
"#opendiscord-types"
|
||||
]
|
||||
|
||||
const handleFunction = (memberType) => {
|
||||
if (!memberType || !memberType.signatures || !Array.isArray(memberType.signatures)) return {type:"unknown"}
|
||||
|
||||
//try to get signature
|
||||
let signature = memberType.signatures.find((s) => !s.typeParameters)
|
||||
if (!signature) signature = memberType.signatures[0]
|
||||
if (!signature) return {type:"unknown"}
|
||||
|
||||
//try to get comment
|
||||
let comment = signature.comment
|
||||
if (!comment) comment = memberType.signatures.find((s) => s.comment)?.comment
|
||||
if (!comment) comment = null
|
||||
|
||||
const signatureInherited = signature.flags.isInherited ? true : false
|
||||
const signatureComment = comment ? comment.summary?.map((c) => c.text).join("") : null
|
||||
const signatureParameters = signature.parameters?.map((p) => {
|
||||
return {name:p.name,details:handleType(p.type)}
|
||||
}) ?? []
|
||||
const signatureReturns = handleType(signature.type)
|
||||
|
||||
return {type:"function",inherited:signatureInherited,comment:signatureComment,parameters:signatureParameters,returns:signatureReturns}
|
||||
}
|
||||
|
||||
const handleObject = (memberType) => {
|
||||
if (!memberType || !memberType.children || !Array.isArray(memberType.children)) return {type:"unknown"}
|
||||
const propertyIds = memberType.groups?.find((g) => g.title == "Properties")?.children ?? []
|
||||
const methodIds = memberType.groups?.find((g) => g.title == "Methods")?.children ?? []
|
||||
|
||||
const objectChildren = []
|
||||
for (const member of (memberType.children ?? [])){
|
||||
const memberName = member.name
|
||||
const memberType = propertyIds.includes(member.id) ? "property" : methodIds.includes(member.id) ? "method" : "other"
|
||||
let memberComment = member.comment?.summary?.map((c) => c.text).join("") ?? null
|
||||
|
||||
const rawMemberSource = member.sources ? (member.sources[0] ?? null) : null
|
||||
let memberSource = rawMemberSource ? rawMemberSource.fileName+":"+rawMemberSource.line+":"+rawMemberSource.character : null
|
||||
|
||||
let memberDetails = null
|
||||
if (memberType == "property"){
|
||||
//INTERFACE => PROPERTY
|
||||
memberDetails = handleType(member.type)
|
||||
}else if (memberType == "method"){
|
||||
//INTERFACE => METHOD
|
||||
memberDetails = handleFunction(member)
|
||||
memberComment = memberDetails.comment
|
||||
}
|
||||
|
||||
objectChildren.push({
|
||||
type:memberType,
|
||||
name:memberName,
|
||||
comment:memberComment,
|
||||
source:memberSource,
|
||||
details:memberDetails
|
||||
})
|
||||
}
|
||||
return {type:"object",children:objectChildren}
|
||||
}
|
||||
|
||||
const handleType = (memberType) => {
|
||||
if (!memberType || !memberType.type) return {type:"unknown"}
|
||||
else if (memberType.type == "intrinsic") return {type:"primitive",name:memberType.name}
|
||||
else if (memberType.type == "array") return {type:"array",child:handleType(memberType.elementType)}
|
||||
else if (memberType.type == "union") return {type:"union",children:memberType.types.map((t) => handleType(t))}
|
||||
else if (memberType.type == "intersection") return {type:"intersection",children:memberType.types.map((t) => handleType(t))}
|
||||
else if (memberType.type == "reference"){
|
||||
const referenceTypeArguments = (memberType.typeArguments) ? memberType.typeArguments.map((ta) => handleType(ta)) : null
|
||||
let referenceType = availableElements.find((el) => el.name == memberType.name)?.type ?? null
|
||||
|
||||
if (referenceType){
|
||||
//member is known type (from Open Ticket)
|
||||
return {type:"reference",name:memberType.name,target:referenceType,typeArguments:referenceTypeArguments}
|
||||
}else if (memberType.package){
|
||||
//member is type from node.js or another package
|
||||
if (memberType.package == "typescript") return {type:"internal",name:memberType.name,typeArguments:referenceTypeArguments}
|
||||
if (memberType.package == "open-ticket" && memberType.refersToTypeParameter) return {type:"typeParam",name:memberType.name,typeArguments:referenceTypeArguments}
|
||||
else return {type:"external",package:memberType.package,name:memberType.name,typeArguments:referenceTypeArguments}
|
||||
}else return {type:"unknown"}
|
||||
}
|
||||
else if (memberType.type == "literal") return {type:"literal",name:(typeof memberType.value == "string") ? JSON.stringify(memberType.value) : String(memberType.value)}
|
||||
else if (memberType.type == "typeOperator"){
|
||||
if (memberType.operator == "keyof") return {type:"keyof",child:handleType(memberType.target)}
|
||||
else if (memberType.operator == "readonly") return {type:"readonly",child:handleType(memberType.target)}
|
||||
else if (memberType.operator == "unique") return {type:"unique",child:handleType(memberType.target)}
|
||||
}
|
||||
else if (memberType.type == "conditional") return {type:"conditional",checker:handleType(memberType.checkType),extends:handleType(memberType.extendsType),trueValue:handleType(memberType.trueType),falseValue:handleType(memberType.falseType)}
|
||||
else if (memberType.type == "indexedAccess") return {type:"index",index:handleType(memberType.indexType),object:handleType(memberType.objectType)}
|
||||
else if (memberType.type == "mapped") return {type:"mapped",parameterName:memberType.parameter,parameter:handleType(memberType.parameterType),template:handleType(memberType.templateType)}
|
||||
else if (memberType.type == "optional") return {type:"optional",child:handleType(memberType.elementType)}
|
||||
else if (memberType.type == "predicate") return {type:"predicate",name:memberType.name,target:handleType(memberType.targetType)}
|
||||
else if (memberType.type == "query") return {type:"query",target:handleType(memberType.queryType)}
|
||||
else if (memberType.type == "rest") return {type:"rest",child:handleType(memberType.elementType)}
|
||||
else if (memberType.type == "tuple") return {type:"tuple",children:memberType.elements.map((t) => handleType(t))}
|
||||
else if (memberType.type == "templateLiteral") return {type:"template",head:memberType.head,tails:memberType.tail.map((t) => {
|
||||
return {element:handleType(t[0]),text:t[1]}
|
||||
})}
|
||||
else if (memberType.type == "reflection" && memberType.declaration && memberType.declaration.signatures && memberType.declaration.signatures[0]){
|
||||
return handleFunction(memberType.declaration)
|
||||
}
|
||||
else if (memberType.type == "reflection"){
|
||||
return handleObject(memberType.declaration)
|
||||
}
|
||||
else return {type:"unknown"}
|
||||
}
|
||||
|
||||
for (const file of result.children){
|
||||
const classIds = file.groups?.find((g) => g.title == "Classes")?.children ?? []
|
||||
const interfaceIds = file.groups?.find((g) => g.title == "Interfaces")?.children ?? []
|
||||
const typeIds = file.groups?.find((g) => g.title == "Type Aliases")?.children ?? []
|
||||
const enumIds = file.groups?.find((g) => g.title == "Enumerations")?.children ?? []
|
||||
const varIds = file.groups?.find((g) => g.title == "Variables")?.children ?? []
|
||||
const funcIds = file.groups?.find((g) => g.title == "Functions")?.children ?? []
|
||||
|
||||
for (const declaration of file.children){
|
||||
const declarationName = declaration.name
|
||||
const declarationType = classIds.includes(declaration.id) ? "class" : interfaceIds.includes(declaration.id) ? "interface" : typeIds.includes(declaration.id) ? "type" : enumIds.includes(declaration.id) ? "enum" : varIds.includes(declaration.id) ? "variable" : funcIds.includes(declaration.id) ? "function" : "other"
|
||||
availableElements.push({name:declarationName,type:declarationType})
|
||||
}
|
||||
}
|
||||
|
||||
const exported = []
|
||||
for (const file of result.children){
|
||||
const classIds = file.groups?.find((g) => g.title == "Classes")?.children ?? []
|
||||
const interfaceIds = file.groups?.find((g) => g.title == "Interfaces")?.children ?? []
|
||||
const typeIds = file.groups?.find((g) => g.title == "Type Aliases")?.children ?? []
|
||||
const enumIds = file.groups?.find((g) => g.title == "Enumerations")?.children ?? []
|
||||
const varIds = file.groups?.find((g) => g.title == "Variables")?.children ?? []
|
||||
const funcIds = file.groups?.find((g) => g.title == "Functions")?.children ?? []
|
||||
|
||||
for (const declaration of (file.children ?? [])){
|
||||
const declarationName = declaration.name
|
||||
if (skipElementNames.includes(declarationName)) continue
|
||||
|
||||
const declarationType = classIds.includes(declaration.id) ? "class" : interfaceIds.includes(declaration.id) ? "interface" : typeIds.includes(declaration.id) ? "type" : enumIds.includes(declaration.id) ? "enum" : varIds.includes(declaration.id) ? "variable" : funcIds.includes(declaration.id) ? "function" : "other"
|
||||
const declarationTypeParams = (declaration.typeParameters) ? declaration.typeParameters.map((tp) => {
|
||||
return {name:tp.name,type:handleType(tp.type)}
|
||||
}) : null
|
||||
const declarationComment = declaration.comment?.summary?.map((c) => c.text).join("") ?? null
|
||||
const declarationConstant = declaration.flags.isConst ? true : false
|
||||
|
||||
const rawDeclarationSource = declaration.sources ? (declaration.sources[0] ?? null) : null
|
||||
const declarationSource = rawDeclarationSource ? rawDeclarationSource.fileName+":"+rawDeclarationSource.line+":"+rawDeclarationSource.character : null
|
||||
|
||||
const declarationChildren = []
|
||||
if (declarationType == "class"){
|
||||
//CLASS
|
||||
const constructorIds = declaration.groups?.find((g) => g.title == "Constructors")?.children ?? []
|
||||
const propertyIds = declaration.groups?.find((g) => g.title == "Properties")?.children ?? []
|
||||
const methodIds = declaration.groups?.find((g) => g.title == "Methods")?.children ?? []
|
||||
|
||||
for (const member of (declaration.children ?? [])){
|
||||
const memberName = member.name
|
||||
const memberType = constructorIds.includes(member.id) ? "constructor" : propertyIds.includes(member.id) ? "property" : methodIds.includes(member.id) ? "method" : "other"
|
||||
let memberComment = member.comment?.summary?.map((c) => c.text).join("") ?? null
|
||||
|
||||
const rawMemberSource = member.sources ? (member.sources[0] ?? null) : null
|
||||
let memberSource = rawMemberSource ? rawMemberSource.fileName+":"+rawMemberSource.line+":"+rawMemberSource.character : null
|
||||
|
||||
const memberInherited = member.flags.isInherited ? true : false
|
||||
const memberStatic = member.flags.isStatic ? true : false
|
||||
const memberProtected = member.flags.isProtected ? true : false
|
||||
const memberOptional = member.flags.isOptional ? true : false
|
||||
const memberReadonly = member.flags.isReadonly ? true : false
|
||||
|
||||
let memberDetails = null
|
||||
if (memberType == "property"){
|
||||
//CLASS => PROPERTY
|
||||
memberDetails = handleType(member.type)
|
||||
|
||||
}else if (memberType == "method"){
|
||||
//CLASS => METHOD
|
||||
memberDetails = handleFunction(member)
|
||||
memberComment = memberDetails.comment
|
||||
|
||||
}else if (memberType == "constructor"){
|
||||
//CLASS => CONSTRUCTOR
|
||||
memberDetails = handleFunction(member)
|
||||
memberComment = memberDetails.comment
|
||||
}
|
||||
|
||||
declarationChildren.push({
|
||||
type:memberType,
|
||||
name:memberName,
|
||||
comment:memberComment,
|
||||
source:memberSource,
|
||||
details:memberDetails,
|
||||
inherited:memberInherited,
|
||||
static:memberStatic,
|
||||
protected:memberProtected,
|
||||
optional:memberOptional,
|
||||
readonly:memberReadonly
|
||||
})
|
||||
}
|
||||
}else if (declarationType == "interface"){
|
||||
//INTERFACE
|
||||
const propertyIds = declaration.groups?.find((g) => g.title == "Properties")?.children ?? []
|
||||
const methodIds = declaration.groups?.find((g) => g.title == "Methods")?.children ?? []
|
||||
|
||||
for (const member of (declaration.children ?? [])){
|
||||
const memberName = member.name
|
||||
const memberType = propertyIds.includes(member.id) ? "property" : methodIds.includes(member.id) ? "method" : "other"
|
||||
let memberComment = member.comment?.summary?.map((c) => c.text).join("") ?? null
|
||||
|
||||
const rawMemberSource = member.sources ? (member.sources[0] ?? null) : null
|
||||
let memberSource = rawMemberSource ? rawMemberSource.fileName+":"+rawMemberSource.line+":"+rawMemberSource.character : null
|
||||
|
||||
const memberInherited = member.flags.isInherited ? true : false
|
||||
const memberStatic = member.flags.isStatic ? true : false
|
||||
const memberProtected = member.flags.isProtected ? true : false
|
||||
const memberOptional = member.flags.isOptional ? true : false
|
||||
const memberReadonly = member.flags.isReadonly ? true : false
|
||||
|
||||
let memberDetails = null
|
||||
if (memberType == "property"){
|
||||
//INTERFACE => PROPERTY
|
||||
memberDetails = handleType(member.type)
|
||||
}else if (memberType == "method"){
|
||||
//INTERFACE => METHOD
|
||||
memberDetails = handleFunction(member)
|
||||
memberComment = memberDetails.comment
|
||||
}
|
||||
|
||||
declarationChildren.push({
|
||||
type:memberType,
|
||||
name:memberName,
|
||||
comment:memberComment,
|
||||
source:memberSource,
|
||||
details:memberDetails,
|
||||
inherited:memberInherited,
|
||||
static:memberStatic,
|
||||
protected:memberProtected,
|
||||
optional:memberOptional,
|
||||
readonly:memberReadonly
|
||||
})
|
||||
}
|
||||
}else if (declarationType == "type"){
|
||||
//TYPE
|
||||
declarationChildren.push(handleType(declaration.type))
|
||||
}else if (declarationType == "enum"){
|
||||
//ENUM
|
||||
const enumerableIds = declaration.groups?.find((g) => g.title == "Enumeration Members")?.children ?? []
|
||||
|
||||
for (const member of (declaration.children ?? [])){
|
||||
const memberName = member.name
|
||||
const memberType = enumerableIds.includes(member.id) ? "enumerable" : "other"
|
||||
const memberComment = member.comment?.summary?.map((c) => c.text).join("") ?? null
|
||||
|
||||
const rawMemberSource = member.sources ? (member.sources[0] ?? null) : null
|
||||
let memberSource = rawMemberSource ? rawMemberSource.fileName+":"+rawMemberSource.line+":"+rawMemberSource.character : null
|
||||
|
||||
let memberDetails = null
|
||||
if (memberType == "enumerable"){
|
||||
//ENUM => ENUMERABLE
|
||||
memberDetails = handleType(member.type)
|
||||
}
|
||||
|
||||
const memberInherited = member.flags.isInherited ? true : false
|
||||
const memberStatic = member.flags.isStatic ? true : false
|
||||
const memberProtected = member.flags.isProtected ? true : false
|
||||
const memberOptional = member.flags.isOptional ? true : false
|
||||
const memberReadonly = member.flags.isReadonly ? true : false
|
||||
|
||||
declarationChildren.push({
|
||||
type:memberType,
|
||||
name:memberName,
|
||||
comment:memberComment,
|
||||
source:memberSource,
|
||||
details:memberDetails,
|
||||
inherited:memberInherited,
|
||||
static:memberStatic,
|
||||
protected:memberProtected,
|
||||
optional:memberOptional,
|
||||
readonly:memberReadonly
|
||||
})
|
||||
}
|
||||
}else if (declarationType == "variable"){
|
||||
//VARIABLE
|
||||
declarationChildren.push(handleType(declaration.type))
|
||||
|
||||
}else if (declarationType == "function"){
|
||||
//FUNCTION
|
||||
declarationChildren.push(handleFunction(declaration))
|
||||
|
||||
}
|
||||
|
||||
exported.push({
|
||||
type:declarationType,
|
||||
name:declarationName,
|
||||
comment:declarationComment,
|
||||
constant:declarationConstant,
|
||||
source:declarationSource,
|
||||
children:declarationChildren,
|
||||
typeParams:declarationTypeParams
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
fs.writeFileSync(".docs/result.json",JSON.stringify(exported,null,"\t"))
|
||||
fs.rmSync(".docs/typedoc-result.json")
|
||||
@@ -0,0 +1,11 @@
|
||||
# Docker Compose for Open Ticket v4
|
||||
version: '3'
|
||||
services:
|
||||
openticket:
|
||||
build: .
|
||||
volumes:
|
||||
- openticket:/home/container
|
||||
restart: no
|
||||
container_name: open-ticket
|
||||
volumes:
|
||||
openticket:
|
||||
@@ -0,0 +1,18 @@
|
||||
# Docker File for Open Ticket v4
|
||||
# Use the official Node.js 22 image from Docker Hub
|
||||
FROM node:22-alpine
|
||||
|
||||
# Set pterodactyl working directory inside the container
|
||||
WORKDIR /home/container
|
||||
|
||||
# Copy package.json and package-lock.json into the container
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of your app's source code into the container
|
||||
COPY . .
|
||||
|
||||
# Run the bot from index.js
|
||||
CMD ["node", "index.js"]
|
||||
@@ -0,0 +1,649 @@
|
||||
//@ts-check
|
||||
const fjs = require("formatted-json-stringify")
|
||||
const fs = require("fs")
|
||||
const formatter = new fjs.ObjectFormatter(null,true,[
|
||||
new fjs.ObjectFormatter("_TRANSLATION",true,[
|
||||
new fjs.PropertyFormatter("otversion"),
|
||||
new fjs.ArrayFormatter("translators",false,new fjs.PropertyFormatter(null)),
|
||||
new fjs.PropertyFormatter("lastedited"),
|
||||
new fjs.PropertyFormatter("language"),
|
||||
new fjs.PropertyFormatter("automated"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("checker",true,[
|
||||
new fjs.ObjectFormatter("system",true,[
|
||||
new fjs.PropertyFormatter("typeError"),
|
||||
new fjs.PropertyFormatter("headerOpenTicket"),
|
||||
new fjs.PropertyFormatter("typeWarning"),
|
||||
new fjs.PropertyFormatter("typeInfo"),
|
||||
new fjs.PropertyFormatter("headerConfigChecker"),
|
||||
new fjs.PropertyFormatter("headerDescription"),
|
||||
new fjs.PropertyFormatter("footerError"),
|
||||
new fjs.PropertyFormatter("footerWarning"),
|
||||
new fjs.PropertyFormatter("footerSupport"),
|
||||
new fjs.PropertyFormatter("compactInformation"),
|
||||
new fjs.PropertyFormatter("dataPath"),
|
||||
new fjs.PropertyFormatter("dataDocs"),
|
||||
new fjs.PropertyFormatter("dataMessages"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("messages",true,[
|
||||
new fjs.PropertyFormatter("stringTooShort"),
|
||||
new fjs.PropertyFormatter("stringTooLong"),
|
||||
new fjs.PropertyFormatter("stringLengthInvalid"),
|
||||
new fjs.PropertyFormatter("stringStartsWith"),
|
||||
new fjs.PropertyFormatter("stringEndsWith"),
|
||||
new fjs.PropertyFormatter("stringContains"),
|
||||
new fjs.PropertyFormatter("stringChoices"),
|
||||
new fjs.PropertyFormatter("stringRegex"),
|
||||
|
||||
new fjs.PropertyFormatter("stringInvertedContains"),
|
||||
new fjs.PropertyFormatter("stringLowercase"),
|
||||
new fjs.PropertyFormatter("stringUppercase"),
|
||||
new fjs.PropertyFormatter("stringSpecialCharacters"),
|
||||
new fjs.PropertyFormatter("stringNoSpaces"),
|
||||
new fjs.PropertyFormatter("stringCapitalWord"),
|
||||
new fjs.PropertyFormatter("stringCapitalSentence"),
|
||||
new fjs.PropertyFormatter("stringPunctuation"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("numberTooShort"),
|
||||
new fjs.PropertyFormatter("numberTooLong"),
|
||||
new fjs.PropertyFormatter("numberLengthInvalid"),
|
||||
new fjs.PropertyFormatter("numberTooSmall"),
|
||||
new fjs.PropertyFormatter("numberTooLarge"),
|
||||
new fjs.PropertyFormatter("numberNotEqual"),
|
||||
new fjs.PropertyFormatter("numberStep"),
|
||||
new fjs.PropertyFormatter("numberStepOffset"),
|
||||
new fjs.PropertyFormatter("numberStartsWith"),
|
||||
new fjs.PropertyFormatter("numberEndsWith"),
|
||||
new fjs.PropertyFormatter("numberContains"),
|
||||
new fjs.PropertyFormatter("numberChoices"),
|
||||
new fjs.PropertyFormatter("numberFloat"),
|
||||
new fjs.PropertyFormatter("numberNegative"),
|
||||
new fjs.PropertyFormatter("numberPositive"),
|
||||
new fjs.PropertyFormatter("numberZero"),
|
||||
new fjs.PropertyFormatter("numberNan"),
|
||||
new fjs.PropertyFormatter("numberInvertedContains"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("booleanTrue"),
|
||||
new fjs.PropertyFormatter("booleanFalse"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("arrayEmptyDisabled"),
|
||||
new fjs.PropertyFormatter("arrayEmptyRequired"),
|
||||
new fjs.PropertyFormatter("arrayTooShort"),
|
||||
new fjs.PropertyFormatter("arrayTooLong"),
|
||||
new fjs.PropertyFormatter("arrayLengthInvalid"),
|
||||
new fjs.PropertyFormatter("arrayInvalidTypes"),
|
||||
new fjs.PropertyFormatter("arrayDouble"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("discordInvalidId"),
|
||||
new fjs.PropertyFormatter("discordInvalidIdOptions"),
|
||||
new fjs.PropertyFormatter("discordInvalidToken"),
|
||||
new fjs.PropertyFormatter("colorInvalid"),
|
||||
new fjs.PropertyFormatter("emojiTooShort"),
|
||||
new fjs.PropertyFormatter("emojiTooLong"),
|
||||
new fjs.PropertyFormatter("emojiCustom"),
|
||||
new fjs.PropertyFormatter("emojiInvalid"),
|
||||
new fjs.PropertyFormatter("urlInvalid"),
|
||||
new fjs.PropertyFormatter("urlInvalidHttp"),
|
||||
new fjs.PropertyFormatter("urlInvalidProtocol"),
|
||||
new fjs.PropertyFormatter("urlInvalidHostname"),
|
||||
new fjs.PropertyFormatter("urlInvalidExtension"),
|
||||
new fjs.PropertyFormatter("urlInvalidPath"),
|
||||
new fjs.PropertyFormatter("idNotUnique"),
|
||||
new fjs.PropertyFormatter("idNonExistent"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("invalidType"),
|
||||
new fjs.PropertyFormatter("propertyMissing"),
|
||||
new fjs.PropertyFormatter("propertyOptional"),
|
||||
new fjs.PropertyFormatter("objectDisabled"),
|
||||
new fjs.PropertyFormatter("nullInvalid"),
|
||||
new fjs.PropertyFormatter("switchInvalidType"),
|
||||
new fjs.PropertyFormatter("objectSwitchInvalid"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("invalidLanguage"),
|
||||
new fjs.PropertyFormatter("invalidButton"),
|
||||
new fjs.PropertyFormatter("unusedOption"),
|
||||
new fjs.PropertyFormatter("unusedQuestion"),
|
||||
new fjs.PropertyFormatter("dropdownOption"),
|
||||
new fjs.PropertyFormatter("customInvalidVersion"),
|
||||
]),
|
||||
]),
|
||||
new fjs.ObjectFormatter("actions",true,[
|
||||
new fjs.ObjectFormatter("buttons",true,[
|
||||
new fjs.PropertyFormatter("create"),
|
||||
new fjs.PropertyFormatter("close"),
|
||||
new fjs.PropertyFormatter("delete"),
|
||||
new fjs.PropertyFormatter("reopen"),
|
||||
new fjs.PropertyFormatter("claim"),
|
||||
new fjs.PropertyFormatter("unclaim"),
|
||||
new fjs.PropertyFormatter("pin"),
|
||||
new fjs.PropertyFormatter("unpin"),
|
||||
new fjs.PropertyFormatter("clear"),
|
||||
new fjs.PropertyFormatter("helpSwitchSlash"),
|
||||
new fjs.PropertyFormatter("helpSwitchText"),
|
||||
new fjs.PropertyFormatter("helpPage"),
|
||||
new fjs.PropertyFormatter("withReason"),
|
||||
new fjs.PropertyFormatter("withoutTranscript"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("titles",true,[
|
||||
new fjs.PropertyFormatter("created"),
|
||||
new fjs.PropertyFormatter("close"),
|
||||
new fjs.PropertyFormatter("delete"),
|
||||
new fjs.PropertyFormatter("reopen"),
|
||||
new fjs.PropertyFormatter("claim"),
|
||||
new fjs.PropertyFormatter("unclaim"),
|
||||
new fjs.PropertyFormatter("pin"),
|
||||
new fjs.PropertyFormatter("unpin"),
|
||||
new fjs.PropertyFormatter("rename"),
|
||||
new fjs.PropertyFormatter("move"),
|
||||
new fjs.PropertyFormatter("add"),
|
||||
new fjs.PropertyFormatter("remove"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("help"),
|
||||
new fjs.PropertyFormatter("statsReset"),
|
||||
new fjs.PropertyFormatter("blacklistAdd"),
|
||||
new fjs.PropertyFormatter("blacklistRemove"),
|
||||
new fjs.PropertyFormatter("blacklistGet"),
|
||||
new fjs.PropertyFormatter("blacklistView"),
|
||||
new fjs.PropertyFormatter("blacklistAddDm"),
|
||||
new fjs.PropertyFormatter("blacklistRemoveDm"),
|
||||
new fjs.PropertyFormatter("clear"),
|
||||
new fjs.PropertyFormatter("clearTickets"),
|
||||
new fjs.PropertyFormatter("roles"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("autoclose"),
|
||||
new fjs.PropertyFormatter("autocloseEnabled"),
|
||||
new fjs.PropertyFormatter("autocloseDisabled"),
|
||||
new fjs.PropertyFormatter("autodelete"),
|
||||
new fjs.PropertyFormatter("autodeleteEnabled"),
|
||||
new fjs.PropertyFormatter("autodeleteDisabled"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("topicSet"),
|
||||
new fjs.PropertyFormatter("prioritySet"),
|
||||
new fjs.PropertyFormatter("priorityGet"),
|
||||
new fjs.PropertyFormatter("transfer"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("descriptions",true,[
|
||||
new fjs.PropertyFormatter("create"),
|
||||
new fjs.PropertyFormatter("close"),
|
||||
new fjs.PropertyFormatter("delete"),
|
||||
new fjs.PropertyFormatter("reopen"),
|
||||
new fjs.PropertyFormatter("claim"),
|
||||
new fjs.PropertyFormatter("unclaim"),
|
||||
new fjs.PropertyFormatter("pin"),
|
||||
new fjs.PropertyFormatter("unpin"),
|
||||
new fjs.PropertyFormatter("rename"),
|
||||
new fjs.PropertyFormatter("move"),
|
||||
new fjs.PropertyFormatter("add"),
|
||||
new fjs.PropertyFormatter("remove"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("helpExplanation"),
|
||||
new fjs.PropertyFormatter("statsReset"),
|
||||
new fjs.PropertyFormatter("statsError"),
|
||||
new fjs.PropertyFormatter("blacklistAdd"),
|
||||
new fjs.PropertyFormatter("blacklistRemove"),
|
||||
new fjs.PropertyFormatter("blacklistGetSuccess"),
|
||||
new fjs.PropertyFormatter("blacklistGetEmpty"),
|
||||
new fjs.PropertyFormatter("blacklistViewEmpty"),
|
||||
new fjs.PropertyFormatter("blacklistViewTip"),
|
||||
new fjs.PropertyFormatter("clearVerify"),
|
||||
new fjs.PropertyFormatter("clearReady"),
|
||||
new fjs.PropertyFormatter("rolesEmpty"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("autocloseLeave"),
|
||||
new fjs.PropertyFormatter("autocloseTimeout"),
|
||||
new fjs.PropertyFormatter("autodeleteLeave"),
|
||||
new fjs.PropertyFormatter("autodeleteTimeout"),
|
||||
new fjs.PropertyFormatter("autocloseEnabled"),
|
||||
new fjs.PropertyFormatter("autocloseDisabled"),
|
||||
new fjs.PropertyFormatter("autodeleteEnabled"),
|
||||
new fjs.PropertyFormatter("autodeleteDisabled"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("ticketMessageLimit"),
|
||||
new fjs.PropertyFormatter("ticketMessageAutoclose"),
|
||||
new fjs.PropertyFormatter("ticketMessageAutodelete"),
|
||||
new fjs.PropertyFormatter("panelReady"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("topicSet"),
|
||||
new fjs.PropertyFormatter("prioritySet"),
|
||||
new fjs.PropertyFormatter("priorityGet"),
|
||||
new fjs.PropertyFormatter("transfer"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("modal",true,[
|
||||
new fjs.PropertyFormatter("closePlaceholder"),
|
||||
new fjs.PropertyFormatter("deletePlaceholder"),
|
||||
new fjs.PropertyFormatter("reopenPlaceholder"),
|
||||
new fjs.PropertyFormatter("claimPlaceholder"),
|
||||
new fjs.PropertyFormatter("unclaimPlaceholder"),
|
||||
new fjs.PropertyFormatter("pinPlaceholder"),
|
||||
new fjs.PropertyFormatter("unpinPlaceholder"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("logs",true,[
|
||||
new fjs.PropertyFormatter("createLog"),
|
||||
new fjs.PropertyFormatter("closeLog"),
|
||||
new fjs.PropertyFormatter("closeDm"),
|
||||
new fjs.PropertyFormatter("deleteLog"),
|
||||
new fjs.PropertyFormatter("deleteDm"),
|
||||
new fjs.PropertyFormatter("reopenLog"),
|
||||
new fjs.PropertyFormatter("reopenDm"),
|
||||
new fjs.PropertyFormatter("claimLog"),
|
||||
new fjs.PropertyFormatter("claimDm"),
|
||||
new fjs.PropertyFormatter("unclaimLog"),
|
||||
new fjs.PropertyFormatter("unclaimDm"),
|
||||
new fjs.PropertyFormatter("pinLog"),
|
||||
new fjs.PropertyFormatter("pinDm"),
|
||||
new fjs.PropertyFormatter("unpinLog"),
|
||||
new fjs.PropertyFormatter("unpinDm"),
|
||||
new fjs.PropertyFormatter("renameLog"),
|
||||
new fjs.PropertyFormatter("renameDm"),
|
||||
new fjs.PropertyFormatter("moveLog"),
|
||||
new fjs.PropertyFormatter("moveDm"),
|
||||
new fjs.PropertyFormatter("addLog"),
|
||||
new fjs.PropertyFormatter("addDm"),
|
||||
new fjs.PropertyFormatter("removeLog"),
|
||||
new fjs.PropertyFormatter("removeDm"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("blacklistAddLog"),
|
||||
new fjs.PropertyFormatter("blacklistRemoveLog"),
|
||||
new fjs.PropertyFormatter("blacklistAddDm"),
|
||||
new fjs.PropertyFormatter("blacklistRemoveDm"),
|
||||
new fjs.PropertyFormatter("clearLog"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("transferLog"),
|
||||
new fjs.PropertyFormatter("transferDm"),
|
||||
new fjs.PropertyFormatter("prioritySetLog"),
|
||||
new fjs.PropertyFormatter("prioritySetDm"),
|
||||
new fjs.PropertyFormatter("roleUpdateLog"),
|
||||
new fjs.PropertyFormatter("roleUpdateDm"),
|
||||
]),
|
||||
]),
|
||||
new fjs.ObjectFormatter("transcripts",true,[
|
||||
new fjs.ObjectFormatter("success",true,[
|
||||
new fjs.PropertyFormatter("visit"),
|
||||
new fjs.PropertyFormatter("ready"),
|
||||
new fjs.PropertyFormatter("textFileDescription"),
|
||||
new fjs.PropertyFormatter("htmlProgress"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("createdChannel"),
|
||||
new fjs.PropertyFormatter("createdCreator"),
|
||||
new fjs.PropertyFormatter("createdParticipant"),
|
||||
new fjs.PropertyFormatter("createdActiveAdmin"),
|
||||
new fjs.PropertyFormatter("createdEveryAdmin"),
|
||||
new fjs.PropertyFormatter("createdOther"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("errors",true,[
|
||||
new fjs.PropertyFormatter("retry"),
|
||||
new fjs.PropertyFormatter("continue"),
|
||||
new fjs.PropertyFormatter("backup"),
|
||||
new fjs.PropertyFormatter("error"),
|
||||
new fjs.PropertyFormatter("title"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("text",true,[
|
||||
new fjs.PropertyFormatter("messagesTitle"),
|
||||
new fjs.PropertyFormatter("embedTitle"),
|
||||
new fjs.PropertyFormatter("fileTitle"),
|
||||
new fjs.PropertyFormatter("fieldsTitle"),
|
||||
new fjs.PropertyFormatter("reactionsTitle"),
|
||||
new fjs.PropertyFormatter("statsTitle"),
|
||||
new fjs.PropertyFormatter("emptyContent"),
|
||||
new fjs.PropertyFormatter("noTitle"),
|
||||
new fjs.PropertyFormatter("noDesc"),
|
||||
]),
|
||||
]),
|
||||
new fjs.ObjectFormatter("errors",true,[
|
||||
new fjs.ObjectFormatter("titles",true,[
|
||||
new fjs.PropertyFormatter("internalError"),
|
||||
new fjs.PropertyFormatter("optionMissing"),
|
||||
new fjs.PropertyFormatter("optionInvalid"),
|
||||
new fjs.PropertyFormatter("unknownCommand"),
|
||||
new fjs.PropertyFormatter("noPermissions"),
|
||||
new fjs.PropertyFormatter("unknownTicket"),
|
||||
new fjs.PropertyFormatter("deprecatedTicket"),
|
||||
new fjs.PropertyFormatter("unknownOption"),
|
||||
new fjs.PropertyFormatter("unknownPanel"),
|
||||
new fjs.PropertyFormatter("notInGuild"),
|
||||
new fjs.PropertyFormatter("channelRename"),
|
||||
new fjs.PropertyFormatter("busy"),
|
||||
new fjs.PropertyFormatter("permissionError"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("descriptions",true,[
|
||||
new fjs.PropertyFormatter("askForInfo"),
|
||||
new fjs.PropertyFormatter("askForInfoResolve"),
|
||||
new fjs.PropertyFormatter("internalError"),
|
||||
new fjs.PropertyFormatter("optionMissing"),
|
||||
new fjs.PropertyFormatter("optionInvalid"),
|
||||
new fjs.PropertyFormatter("optionInvalidChoose"),
|
||||
new fjs.PropertyFormatter("unknownCommand"),
|
||||
new fjs.PropertyFormatter("noPermissions"),
|
||||
new fjs.PropertyFormatter("noPermissionsList"),
|
||||
new fjs.PropertyFormatter("noPermissionsCooldown"),
|
||||
new fjs.PropertyFormatter("noPermissionsBlacklist"),
|
||||
new fjs.PropertyFormatter("noPermissionsLimitGlobal"),
|
||||
new fjs.PropertyFormatter("noPermissionsLimitGlobalUser"),
|
||||
new fjs.PropertyFormatter("noPermissionsLimitOption"),
|
||||
new fjs.PropertyFormatter("noPermissionsLimitOptionUser"),
|
||||
new fjs.PropertyFormatter("unknownTicket"),
|
||||
new fjs.PropertyFormatter("deprecatedTicket"),
|
||||
new fjs.PropertyFormatter("notInGuild"),
|
||||
new fjs.PropertyFormatter("channelRename"),
|
||||
new fjs.PropertyFormatter("channelRenameSource"),
|
||||
new fjs.PropertyFormatter("busy"),
|
||||
new fjs.PropertyFormatter("closeBeforeMessage"),
|
||||
new fjs.PropertyFormatter("closeBeforeAdminMessage"),
|
||||
new fjs.PropertyFormatter("unableToCreateTicket"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("optionInvalidReasons",true,[
|
||||
new fjs.PropertyFormatter("stringRegex"),
|
||||
new fjs.PropertyFormatter("stringMinLength"),
|
||||
new fjs.PropertyFormatter("stringMaxLength"),
|
||||
new fjs.PropertyFormatter("numberInvalid"),
|
||||
new fjs.PropertyFormatter("numberMin"),
|
||||
new fjs.PropertyFormatter("numberMax"),
|
||||
new fjs.PropertyFormatter("numberDecimal"),
|
||||
new fjs.PropertyFormatter("numberNegative"),
|
||||
new fjs.PropertyFormatter("numberPositive"),
|
||||
new fjs.PropertyFormatter("numberZero"),
|
||||
new fjs.PropertyFormatter("channelNotFound"),
|
||||
new fjs.PropertyFormatter("userNotFound"),
|
||||
new fjs.PropertyFormatter("roleNotFound"),
|
||||
new fjs.PropertyFormatter("memberNotFound"),
|
||||
new fjs.PropertyFormatter("mentionableNotFound"),
|
||||
new fjs.PropertyFormatter("channelType"),
|
||||
new fjs.PropertyFormatter("notInGuild"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("permissions",true,[
|
||||
new fjs.PropertyFormatter("developer"),
|
||||
new fjs.PropertyFormatter("owner"),
|
||||
new fjs.PropertyFormatter("admin"),
|
||||
new fjs.PropertyFormatter("moderator"),
|
||||
new fjs.PropertyFormatter("support"),
|
||||
new fjs.PropertyFormatter("member"),
|
||||
new fjs.PropertyFormatter("discord-administrator"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("actionInvalid",true,[
|
||||
new fjs.PropertyFormatter("close"),
|
||||
new fjs.PropertyFormatter("reopen"),
|
||||
new fjs.PropertyFormatter("claim"),
|
||||
new fjs.PropertyFormatter("unclaim"),
|
||||
new fjs.PropertyFormatter("pin"),
|
||||
new fjs.PropertyFormatter("unpin"),
|
||||
new fjs.PropertyFormatter("add"),
|
||||
new fjs.PropertyFormatter("remove"),
|
||||
]),
|
||||
]),
|
||||
new fjs.ObjectFormatter("params",true,[
|
||||
new fjs.ObjectFormatter("uppercase",true,[
|
||||
new fjs.PropertyFormatter("ticket"),
|
||||
new fjs.PropertyFormatter("tickets"),
|
||||
new fjs.PropertyFormatter("reason"),
|
||||
new fjs.PropertyFormatter("creator"),
|
||||
new fjs.PropertyFormatter("remaining"),
|
||||
new fjs.PropertyFormatter("added"),
|
||||
new fjs.PropertyFormatter("removed"),
|
||||
new fjs.PropertyFormatter("filter"),
|
||||
new fjs.PropertyFormatter("method"),
|
||||
new fjs.PropertyFormatter("type"),
|
||||
new fjs.PropertyFormatter("blacklisted"),
|
||||
new fjs.PropertyFormatter("panel"),
|
||||
new fjs.PropertyFormatter("command"),
|
||||
new fjs.PropertyFormatter("system"),
|
||||
new fjs.PropertyFormatter("true"),
|
||||
new fjs.PropertyFormatter("false"),
|
||||
new fjs.PropertyFormatter("syntax"),
|
||||
new fjs.PropertyFormatter("originalName"),
|
||||
new fjs.PropertyFormatter("newName"),
|
||||
new fjs.PropertyFormatter("until"),
|
||||
new fjs.PropertyFormatter("validOptions"),
|
||||
new fjs.PropertyFormatter("validPanels"),
|
||||
new fjs.PropertyFormatter("autoclose"),
|
||||
new fjs.PropertyFormatter("autodelete"),
|
||||
new fjs.PropertyFormatter("startupDate"),
|
||||
new fjs.PropertyFormatter("version"),
|
||||
new fjs.PropertyFormatter("name"),
|
||||
new fjs.PropertyFormatter("role"),
|
||||
new fjs.PropertyFormatter("status"),
|
||||
new fjs.PropertyFormatter("claimed"),
|
||||
new fjs.PropertyFormatter("pinned"),
|
||||
new fjs.PropertyFormatter("creationDate"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("noone"),
|
||||
new fjs.PropertyFormatter("open"),
|
||||
new fjs.PropertyFormatter("closed"),
|
||||
new fjs.PropertyFormatter("priority"),
|
||||
new fjs.PropertyFormatter("participants"),
|
||||
new fjs.PropertyFormatter("yes"),
|
||||
new fjs.PropertyFormatter("no"),
|
||||
new fjs.PropertyFormatter("option"),
|
||||
new fjs.PropertyFormatter("topic"),
|
||||
new fjs.PropertyFormatter("uptime"),
|
||||
new fjs.PropertyFormatter("messages"),
|
||||
new fjs.PropertyFormatter("embeds"),
|
||||
new fjs.PropertyFormatter("files"),
|
||||
new fjs.PropertyFormatter("components"),
|
||||
new fjs.PropertyFormatter("cooldown"),
|
||||
new fjs.PropertyFormatter("maxTickets"),
|
||||
new fjs.PropertyFormatter("admins"),
|
||||
new fjs.PropertyFormatter("roles"),
|
||||
new fjs.PropertyFormatter("size"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("lowercase",true,[
|
||||
new fjs.PropertyFormatter("text"),
|
||||
new fjs.PropertyFormatter("html"),
|
||||
new fjs.PropertyFormatter("command"),
|
||||
new fjs.PropertyFormatter("modal"),
|
||||
new fjs.PropertyFormatter("button"),
|
||||
new fjs.PropertyFormatter("dropdown"),
|
||||
new fjs.PropertyFormatter("method"),
|
||||
]),
|
||||
]),
|
||||
new fjs.ObjectFormatter("commands",true,[
|
||||
new fjs.PropertyFormatter("reason"),
|
||||
new fjs.PropertyFormatter("help"),
|
||||
new fjs.PropertyFormatter("panel"),
|
||||
new fjs.PropertyFormatter("panelId"),
|
||||
new fjs.PropertyFormatter("panelAutoUpdate"),
|
||||
new fjs.PropertyFormatter("ticket"),
|
||||
new fjs.PropertyFormatter("ticketId"),
|
||||
new fjs.PropertyFormatter("close"),
|
||||
new fjs.PropertyFormatter("delete"),
|
||||
new fjs.PropertyFormatter("deleteNoTranscript"),
|
||||
new fjs.PropertyFormatter("reopen"),
|
||||
new fjs.PropertyFormatter("claim"),
|
||||
new fjs.PropertyFormatter("claimUser"),
|
||||
new fjs.PropertyFormatter("unclaim"),
|
||||
new fjs.PropertyFormatter("pin"),
|
||||
new fjs.PropertyFormatter("unpin"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("move"),
|
||||
new fjs.PropertyFormatter("moveId"),
|
||||
new fjs.PropertyFormatter("rename"),
|
||||
new fjs.PropertyFormatter("renameName"),
|
||||
new fjs.PropertyFormatter("add"),
|
||||
new fjs.PropertyFormatter("addUser"),
|
||||
new fjs.PropertyFormatter("remove"),
|
||||
new fjs.PropertyFormatter("removeUser"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("blacklist"),
|
||||
new fjs.PropertyFormatter("blacklistView"),
|
||||
new fjs.PropertyFormatter("blacklistAdd"),
|
||||
new fjs.PropertyFormatter("blacklistRemove"),
|
||||
new fjs.PropertyFormatter("blacklistGet"),
|
||||
new fjs.PropertyFormatter("blacklistGetUser"),
|
||||
new fjs.PropertyFormatter("stats"),
|
||||
new fjs.PropertyFormatter("statsReset"),
|
||||
new fjs.PropertyFormatter("statsGlobal"),
|
||||
new fjs.PropertyFormatter("statsUser"),
|
||||
new fjs.PropertyFormatter("statsUserUser"),
|
||||
new fjs.PropertyFormatter("statsTicket"),
|
||||
new fjs.PropertyFormatter("statsTicketTicket"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("clear"),
|
||||
new fjs.PropertyFormatter("clearFilter"),
|
||||
new fjs.ObjectFormatter("clearFilters",true,[
|
||||
new fjs.PropertyFormatter("all"),
|
||||
new fjs.PropertyFormatter("open"),
|
||||
new fjs.PropertyFormatter("close"),
|
||||
new fjs.PropertyFormatter("claim"),
|
||||
new fjs.PropertyFormatter("unclaim"),
|
||||
new fjs.PropertyFormatter("pin"),
|
||||
new fjs.PropertyFormatter("unpin"),
|
||||
new fjs.PropertyFormatter("autoclose"),
|
||||
]),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("autoclose"),
|
||||
new fjs.PropertyFormatter("autocloseDisable"),
|
||||
new fjs.PropertyFormatter("autocloseEnable"),
|
||||
new fjs.PropertyFormatter("autocloseEnableTime"),
|
||||
new fjs.PropertyFormatter("autodelete"),
|
||||
new fjs.PropertyFormatter("autodeleteDisable"),
|
||||
new fjs.PropertyFormatter("autodeleteEnable"),
|
||||
new fjs.PropertyFormatter("autodeleteEnableTime"),
|
||||
new fjs.TextFormatter(""),
|
||||
new fjs.PropertyFormatter("topic"),
|
||||
new fjs.PropertyFormatter("topicSet"),
|
||||
new fjs.PropertyFormatter("topicValue"),
|
||||
new fjs.PropertyFormatter("topicList"),
|
||||
new fjs.PropertyFormatter("priority"),
|
||||
new fjs.PropertyFormatter("prioritySet"),
|
||||
new fjs.PropertyFormatter("priorityValue"),
|
||||
new fjs.PropertyFormatter("priorityGet"),
|
||||
new fjs.PropertyFormatter("priorityList"),
|
||||
new fjs.PropertyFormatter("transfer"),
|
||||
new fjs.PropertyFormatter("transferUser"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("helpMenu",true,[
|
||||
new fjs.PropertyFormatter("help"),
|
||||
new fjs.PropertyFormatter("ticket"),
|
||||
new fjs.PropertyFormatter("close"),
|
||||
new fjs.PropertyFormatter("delete"),
|
||||
new fjs.PropertyFormatter("reopen"),
|
||||
new fjs.PropertyFormatter("pin"),
|
||||
new fjs.PropertyFormatter("unpin"),
|
||||
new fjs.PropertyFormatter("move"),
|
||||
new fjs.PropertyFormatter("rename"),
|
||||
new fjs.PropertyFormatter("claim"),
|
||||
new fjs.PropertyFormatter("unclaim"),
|
||||
new fjs.PropertyFormatter("add"),
|
||||
new fjs.PropertyFormatter("remove"),
|
||||
new fjs.PropertyFormatter("panel"),
|
||||
new fjs.PropertyFormatter("blacklistView"),
|
||||
new fjs.PropertyFormatter("blacklistAdd"),
|
||||
new fjs.PropertyFormatter("blacklistRemove"),
|
||||
new fjs.PropertyFormatter("blacklistGet"),
|
||||
new fjs.PropertyFormatter("statsGlobal"),
|
||||
new fjs.PropertyFormatter("statsTicket"),
|
||||
new fjs.PropertyFormatter("statsUser"),
|
||||
new fjs.PropertyFormatter("statsReset"),
|
||||
new fjs.PropertyFormatter("autocloseDisable"),
|
||||
new fjs.PropertyFormatter("autocloseEnable"),
|
||||
new fjs.PropertyFormatter("autodeleteDisable"),
|
||||
new fjs.PropertyFormatter("autodeleteEnable"),
|
||||
new fjs.ObjectFormatter("categories",true,[
|
||||
new fjs.PropertyFormatter("general"),
|
||||
new fjs.PropertyFormatter("basicTicket"),
|
||||
new fjs.PropertyFormatter("advancedTicket"),
|
||||
new fjs.PropertyFormatter("userTicket"),
|
||||
new fjs.PropertyFormatter("admin"),
|
||||
new fjs.PropertyFormatter("advanced"),
|
||||
new fjs.PropertyFormatter("extra"),
|
||||
])
|
||||
]),
|
||||
new fjs.ObjectFormatter("stats",true,[
|
||||
new fjs.ObjectFormatter("scopes",true,[
|
||||
new fjs.PropertyFormatter("global"),
|
||||
new fjs.PropertyFormatter("system"),
|
||||
new fjs.PropertyFormatter("user"),
|
||||
new fjs.PropertyFormatter("ticket"),
|
||||
new fjs.PropertyFormatter("participants"),
|
||||
new fjs.PropertyFormatter("messages"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("properties",true,[
|
||||
new fjs.PropertyFormatter("ticketsCreated"),
|
||||
new fjs.PropertyFormatter("ticketsClosed"),
|
||||
new fjs.PropertyFormatter("ticketsDeleted"),
|
||||
new fjs.PropertyFormatter("ticketsReopened"),
|
||||
new fjs.PropertyFormatter("ticketsAutoclosed"),
|
||||
new fjs.PropertyFormatter("ticketsClaimed"),
|
||||
new fjs.PropertyFormatter("ticketsPinned"),
|
||||
new fjs.PropertyFormatter("ticketsMoved"),
|
||||
new fjs.PropertyFormatter("usersBlacklisted"),
|
||||
new fjs.PropertyFormatter("transcriptsCreated"),
|
||||
new fjs.PropertyFormatter("ticketsAutodeleted"),
|
||||
new fjs.PropertyFormatter("ticketsTransferred"),
|
||||
new fjs.PropertyFormatter("ticketVolume"),
|
||||
new fjs.PropertyFormatter("averageTickets"),
|
||||
new fjs.PropertyFormatter("currentTickets"),
|
||||
new fjs.PropertyFormatter("age"),
|
||||
new fjs.PropertyFormatter("responseTime"),
|
||||
new fjs.PropertyFormatter("resolutionTime"),
|
||||
new fjs.PropertyFormatter("createdOn"),
|
||||
new fjs.PropertyFormatter("createdBy"),
|
||||
new fjs.PropertyFormatter("closedOn"),
|
||||
new fjs.PropertyFormatter("closedBy"),
|
||||
new fjs.PropertyFormatter("claimedOn"),
|
||||
new fjs.PropertyFormatter("claimedBy"),
|
||||
new fjs.PropertyFormatter("pinnedOn"),
|
||||
new fjs.PropertyFormatter("pinnedBy"),
|
||||
new fjs.PropertyFormatter("deletedOn"),
|
||||
new fjs.PropertyFormatter("deletedBy"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("roles",true,[
|
||||
new fjs.PropertyFormatter("developer"),
|
||||
new fjs.PropertyFormatter("serverOwner"),
|
||||
new fjs.PropertyFormatter("serverAdmin"),
|
||||
new fjs.PropertyFormatter("moderator"),
|
||||
new fjs.PropertyFormatter("support"),
|
||||
new fjs.PropertyFormatter("member"),
|
||||
])
|
||||
]),
|
||||
new fjs.ObjectFormatter("panel",true,[
|
||||
new fjs.PropertyFormatter("selectTicket"),
|
||||
new fjs.PropertyFormatter("selectRole"),
|
||||
new fjs.PropertyFormatter("selectOption"),
|
||||
]),
|
||||
new fjs.ObjectFormatter("priorities",true,[
|
||||
new fjs.PropertyFormatter("urgent"),
|
||||
new fjs.PropertyFormatter("veryHigh"),
|
||||
new fjs.PropertyFormatter("high"),
|
||||
new fjs.PropertyFormatter("normal"),
|
||||
new fjs.PropertyFormatter("low"),
|
||||
new fjs.PropertyFormatter("veryLow"),
|
||||
new fjs.PropertyFormatter("none"),
|
||||
]),
|
||||
])
|
||||
|
||||
for (const language of fs.readdirSync(".docs/languages/")){
|
||||
if (!fs.existsSync("./languages/"+language)){
|
||||
console.log("language:",language,"does not exist yet in the primary ./languages/ folder. Unable to merge!")
|
||||
continue
|
||||
}
|
||||
console.log("merging "+language+"...")
|
||||
const original = JSON.parse(fs.readFileSync("./languages/"+language).toString())
|
||||
const newSentences = JSON.parse(fs.readFileSync(".docs/languages/"+language).toString())
|
||||
|
||||
for (const key of Object.keys(newSentences)){
|
||||
if (key.startsWith("_")) continue
|
||||
try{
|
||||
const splitted = key.split(".")
|
||||
let currentObject = original
|
||||
splitted.forEach((property,index) => {
|
||||
let shouldBeObject = (splitted.length-1 !== index)
|
||||
if (shouldBeObject && typeof currentObject[property] == "object"){
|
||||
currentObject = currentObject[property]
|
||||
}else if (shouldBeObject && typeof currentObject[property] == "undefined"){
|
||||
currentObject[property] = {}
|
||||
currentObject = currentObject[property]
|
||||
}else if (typeof currentObject[property] == "string" || typeof currentObject[property] == "undefined"){
|
||||
currentObject[property] = newSentences[key]
|
||||
}else{
|
||||
console.log("Failed to merge key:",key,"in file:",language,"--> Invalid type:",typeof currentObject[property])
|
||||
}
|
||||
})
|
||||
}catch(err){
|
||||
console.log("Failed to merge key:",key,"in file:",language)
|
||||
}
|
||||
}
|
||||
original["_TRANSLATION"]["lastedited"] = new Date().toLocaleDateString("nl-BE",{day:"2-digit",month:"2-digit",year:"numeric"})
|
||||
original["_TRANSLATION"]["otversion"] = "v4.1.3"
|
||||
const finalText = formatter.stringify(original)
|
||||
fs.writeFileSync("./languages/"+language,finalText)
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
# Pterodactyl Eggs
|
||||
<img src="https://apis.dj-dj.be/cdn/openticket/logo.png" alt="Open Ticket Logo" width="500px">
|
||||
|
||||
[](https://discord.com/invite/26vT9wt3n3)
|
||||
[](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.1.3)
|
||||
[](https://github.com/sponsors/DJj123dj)
|
||||
[](.eggs/README.md)
|
||||
|
||||
|
||||
Hi there! Open Ticket provides **official eggs** for the Pterodactyl & Pelican panels!<br>
|
||||
There are different eggs for different versions of Open Ticket.
|
||||
Please choose the one that fits your needs the most.
|
||||
|
||||
If you encounter any issues while installing these eggs, please head to our [**discord server**](https://discord.dj-dj.be) for further assistance!
|
||||
|
||||
### Requirements
|
||||
It's recommended to provide at least `1GB` of **Memory/RAM** and `5GB` of **disk space** for Open Ticket to work correctly.
|
||||
|
||||
### Egg Variants
|
||||
[**`openticket-egg-main.json` (Recommended)**](openticket-egg-main.json)
|
||||
- This egg will use the `main` branch of Open Ticket.
|
||||
|
||||
[**`openticket-egg-v4.1.3.json`**](openticket-egg-v4.1.3.json)
|
||||
- This egg will always use Open Ticket `v4.1.3`. Open Ticket updates will not have an effect on this egg.
|
||||
|
||||
[**`openticket-egg-v4.1.2.json`**](openticket-egg-v4.1.2.json)
|
||||
- This egg will always use Open Ticket `v4.1.2`. Open Ticket updates will not have an effect on this egg.
|
||||
|
||||
[**`openticket-egg-v4.1.1.json`**](openticket-egg-v4.1.1.json)
|
||||
- This egg will always use Open Ticket `v4.1.1`. Open Ticket updates will not have an effect on this egg.
|
||||
|
||||
[**`openticket-egg-v4.1.0.json`**](openticket-egg-v4.1.0.json)
|
||||
- This egg will always use Open Ticket `v4.1.0`. Open Ticket updates will not have an effect on this egg.
|
||||
|
||||
[**`openticket-egg-v4.0.7.json`**](openticket-egg-v4.0.7.json)
|
||||
- This egg will always use Open Ticket `v4.0.7`. Open Ticket updates will not have an effect on this egg.
|
||||
|
||||
[**`openticket-egg-v3.5.9.json`**](openticket-egg-v3.5.9.json)
|
||||
- This egg will always use Open Ticket `v3.5.9`. Open Ticket updates will not have an effect on this egg.
|
||||
|
||||
[**`openticket-egg-dev.json` (Not Recommended)**](openticket-egg-dev.json)
|
||||
- This egg will use the `dev` branch of Open Ticket.
|
||||
|
||||
---
|
||||
<img src="https://apis.dj-dj.be/cdn/openticket/logo.png" alt="Open Ticket Logo" width="170px">
|
||||
|
||||
**Pterodactyl Eggs**<br>
|
||||
[Changelog](https://otgithub.dj-dj.be/releases) - [Documentation](https://otdocs.dj-dj.be) - [Website](https://openticket.dj-dj.be) - [Support Server](https://discord.dj-dj.be) - [License](./LICENSE.md)<br>
|
||||
|
||||
© 2021 - 2026 - [DJdj Development](https://www.dj-dj.be) - [Terms](https://www.dj-dj.be/terms) - [Privacy Policy](https://www.dj-dj.be/privacy) - [Support Us](https://github.com/sponsors/DJj123dj)
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:21+01:00",
|
||||
"name": "Open Ticket (Experimental)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the experimental Pterodactyl egg for Open Ticket, the most advanced & customisable discord ticket bot that you will ever find! DO NOT USE IN PRODUCTION!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (dev)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"dev\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:20+01:00",
|
||||
"name": "Open Ticket (Latest)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the official Pterodactyl egg for Open Ticket, the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions\/Modals, Stats & more!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (main)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"main\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:19+01:00",
|
||||
"name": "Open Ticket (v3.5.9)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the official Pterodactyl egg for Open Ticket v3.5.9, the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions\/Modals, Stats & more!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (v3.5.9)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"v3.5.9\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:18+01:00",
|
||||
"name": "Open Ticket (v4.0.7)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the official Pterodactyl egg for Open Ticket v4.0.7, the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions\/Modals, Stats & more!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (v4.0.7)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"v4.0.7\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:18+01:00",
|
||||
"name": "Open Ticket (v4.1.0)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the official Pterodactyl egg for Open Ticket v4.1.0, the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions\/Modals, Stats & more!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (v4.1.0)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"v4.1.0\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:18+01:00",
|
||||
"name": "Open Ticket (v4.1.1)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the official Pterodactyl egg for Open Ticket v4.1.1, the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions\/Modals, Stats & more!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (v4.1.1)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"v4.1.1\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:18+01:00",
|
||||
"name": "Open Ticket (v4.1.2)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the official Pterodactyl egg for Open Ticket v4.1.2, the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions\/Modals, Stats & more!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (v4.1.2)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"v4.1.2\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||||
"meta": {
|
||||
"version": "PTDL_v2",
|
||||
"update_url": null
|
||||
},
|
||||
"exported_at": "2025-03-16T18:10:18+01:00",
|
||||
"name": "Open Ticket (v4.1.3)",
|
||||
"author": "support@dj-dj.be",
|
||||
"description": "This is the official Pterodactyl egg for Open Ticket v4.1.3, the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions\/Modals, Stats & more!",
|
||||
"features": null,
|
||||
"docker_images": {
|
||||
"ghcr.io\/parkervcp\/yolks:nodejs_20": "ghcr.io\/parkervcp\/yolks:nodejs_20"
|
||||
},
|
||||
"file_denylist": [],
|
||||
"startup": "if [[ ! -z ${NODE_PACKAGES} ]]; then npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then npm install; fi; node \"\/home\/container\/index.js\" ${NODE_FLAGS};",
|
||||
"config": {
|
||||
"files": "{}",
|
||||
"startup": "{\r\n \"done\": \"STARTUP INFO:\"\r\n}",
|
||||
"logs": "{}",
|
||||
"stop": "^C"
|
||||
},
|
||||
"scripts": {
|
||||
"installation": {
|
||||
"script": "#!\/bin\/bash\r\n# Open Ticket Installation Script (v4.1.3)\r\n# Inspired by: Node.js Installation Script\r\n# \u00a9 DJdj Development\r\n\r\necho -e \"[OT INSTALLER] installing dependencies. please wait...\"\r\napt update\r\napt install -y git curl\r\n\r\necho -e \"[OT INSTALLER] updating npm. please wait...\"\r\nnpm install npm@latest --location=global\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nBRANCH=\"v4.1.3\"\r\n\r\nif [ \"$(ls -A \/mnt\/server)\" ]; then\r\n echo -e \"[OT INSTALLER] \/mnt\/server directory is not empty.\"\r\n if [ -d .git ]; then\r\n echo -e \"[OT INSTALLER] .git directory exists\"\r\n if [ -f .git\/config ]; then\r\n echo -e \"[OT INSTALLER] loading info from git config\"\r\n ORIGIN=$(git config --get remote.origin.url)\r\n else\r\n echo -e \"[OT INSTALLER] files found with no git config\"\r\n echo -e \"[OT INSTALLER] closing out without touching things to not break anything\"\r\n exit 10\r\n fi\r\n fi\r\n\r\n if [ \"${ORIGIN}\" == \"https:\/\/github.com\/open-discord-bots\/open-ticket.git\" ]; then\r\n echo \"pulling latest from github\"\r\n git pull\r\n fi\r\nelse\r\n echo -e \"[OT INSTALLER] \/mnt\/server is empty.\"\r\n echo -e \"[OT INSTALLER] cloning files into repo.\"\r\n if [ -z ${BRANCH} ]; then\r\n echo -e \"[OT INSTALLER] cloning default branch\"\r\n git clone https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n else\r\n echo -e \"[OT INSTALLER] cloning ${BRANCH}'\"\r\n git clone --single-branch --branch ${BRANCH} https:\/\/github.com\/open-discord-bots\/open-ticket.git .\r\n fi\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing Open Ticket node.js packages.\"\r\nif [ -f \/mnt\/server\/package.json ]; then\r\n \/usr\/local\/bin\/npm install --omit=dev\r\nfi\r\n\r\necho -e \"[OT INSTALLER] installing custom node.js packages.\"\r\nif [[ ! -z ${NODE_PACKAGES} ]]; then\r\n \/usr\/local\/bin\/npm install ${NODE_PACKAGES}\r\nfi\r\n\r\necho -e \"[OT INSTALLER] install complete!\"\r\nexit 0",
|
||||
"container": "node:latest",
|
||||
"entrypoint": "bash"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"name": "Additional Npm Packages",
|
||||
"description": "Specify additional npm packages used by Open Ticket plugins. Use spaces to separate.",
|
||||
"env_variable": "NODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Startup Flags",
|
||||
"description": "Start the bot with additional Open Ticket flags. Separate using spaces.\r\nA full reference list can be found in the documentation.",
|
||||
"env_variable": "NODE_FLAGS",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
},
|
||||
{
|
||||
"name": "Uninstall Npm Packages",
|
||||
"description": "A list of npm packages to uninstall. Separate by spaces.",
|
||||
"env_variable": "UNNODE_PACKAGES",
|
||||
"default_value": "",
|
||||
"user_viewable": false,
|
||||
"user_editable": true,
|
||||
"rules": "string|nullable",
|
||||
"field_type": "text"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://typedoc.org/schema.json",
|
||||
"entryPoints": [
|
||||
"../src/core/api/modules/",
|
||||
"../src/core/api/defaults/",
|
||||
"../src/core/api/openticket/",
|
||||
"../src/core/api/main.ts",
|
||||
"../src/core/startup/init.ts",
|
||||
],
|
||||
"entryPointStrategy": "expand",
|
||||
"json": "./typedoc-result.json",
|
||||
"basePath": "../"
|
||||
}
|
||||
Reference in New Issue
Block a user