Open Ticket v4.2: Config Update (JSONC)
This commit is contained in:
@@ -1,125 +0,0 @@
|
||||
{
|
||||
"_INFO":{
|
||||
"support":"https://otdocs.dj-dj.be",
|
||||
"discord":"https://discord.dj-dj.be",
|
||||
"version":"open-ticket-v4.1.3"
|
||||
},
|
||||
|
||||
"token":"INSERT_BOT_TOKEN (leave empty if using 'tokenFromENV')",
|
||||
"tokenFromENV":false,
|
||||
|
||||
"mainColor":"#f8ba00",
|
||||
"language":"english",
|
||||
"prefix":"!ticket ",
|
||||
"serverId":"DISCORD_SERVER_ID",
|
||||
"globalAdmins":["DISCORD_ROLE_ID"],
|
||||
|
||||
"slashCommands":true,
|
||||
"textCommands":true,
|
||||
|
||||
"status":{
|
||||
"enabled":true,
|
||||
"type":"listening OR watching OR playing OR custom",
|
||||
"mode":"online OR invisible OR idle OR dnd",
|
||||
"text":"/help",
|
||||
"state":"Insert additional status text (or leave empty)"
|
||||
},
|
||||
|
||||
"system":{
|
||||
"preferSlashOverText":true,
|
||||
"sendErrorOnUnknownCommand":true,
|
||||
"questionFieldsInCodeBlock":true,
|
||||
"displayFieldsWithQuestions":false,
|
||||
"showGlobalAdminsInPanelRoles":false,
|
||||
"disableVerifyBars":false,
|
||||
"useRedErrorEmbeds":true,
|
||||
"alwaysShowReason":false,
|
||||
"emojiStyle":"before (OR after OR double OR disabled)",
|
||||
"pinEmoji":"📌",
|
||||
|
||||
"replyOnTicketCreation":true,
|
||||
"replyOnReactionRole":true,
|
||||
"askPriorityOnTicketCreation":false,
|
||||
"removeParticipantsOnClose":false,
|
||||
"disableAutocloseAfterReopen":true,
|
||||
"autodeleteRequiresClosedTicket":true,
|
||||
"adminOnlyDeleteWithoutTranscript":true,
|
||||
"allowCloseBeforeMessage":false,
|
||||
"allowCloseBeforeAdminMessage":true,
|
||||
"useTranslatedConfigChecker":true,
|
||||
"pinFirstTicketMessage":false,
|
||||
|
||||
"enableTicketClaimButtons":true,
|
||||
"enableTicketCloseButtons":true,
|
||||
"enableTicketPinButtons":true,
|
||||
"enableTicketDeleteButtons":true,
|
||||
"enableTicketActionWithReason":true,
|
||||
"enableDeleteWithoutTranscript":true,
|
||||
|
||||
"logs":{
|
||||
"enabled":false,
|
||||
"channel":"DISCORD_CHANNEL_ID"
|
||||
},
|
||||
|
||||
"limits":{
|
||||
"enabled":true,
|
||||
"globalMaximum":50,
|
||||
"userMaximum":3
|
||||
},
|
||||
|
||||
"channelTopic":{
|
||||
"showOptionName":true,
|
||||
"showOptionDescription":false,
|
||||
"showOptionTopic":true,
|
||||
"showPriority":false,
|
||||
"showClosed":true,
|
||||
"showClaimed":false,
|
||||
"showPinned":false,
|
||||
"showCreator":false,
|
||||
"showParticipants":false
|
||||
},
|
||||
|
||||
"permissions":{
|
||||
"help":"everyone (OR admin OR none OR role id)",
|
||||
"panel":"admin (OR everyone OR none OR role id)",
|
||||
"ticket":"none (OR admin OR everyone OR role id)",
|
||||
"close":"everyone (OR admin OR none OR role id)",
|
||||
"delete":"admin (OR everyone OR none OR role id)",
|
||||
"reopen":"everyone (OR admin OR none OR role id)",
|
||||
"claim":"admin (OR everyone OR none OR role id)",
|
||||
"unclaim":"admin (OR everyone OR none OR role id)",
|
||||
"pin":"admin (OR everyone OR none OR role id)",
|
||||
"unpin":"admin (OR everyone OR none OR role id)",
|
||||
"move":"admin (OR everyone OR none OR role id)",
|
||||
"rename":"admin (OR everyone OR none OR role id)",
|
||||
"add":"admin (OR everyone OR none OR role id)",
|
||||
"remove":"admin (OR everyone OR none OR role id)",
|
||||
"blacklist":"admin (OR everyone OR none OR role id)",
|
||||
"stats":"everyone (OR admin OR none OR role id)",
|
||||
"clear":"admin (OR everyone OR none OR role id)",
|
||||
"autoclose":"admin (OR everyone OR none OR role id)",
|
||||
"autodelete":"admin (OR everyone OR none OR role id)",
|
||||
"transfer":"admin (OR everyone OR none OR role id)",
|
||||
"topic":"admin (OR everyone OR none OR role id)",
|
||||
"priority":"admin (OR everyone OR none OR role id)"
|
||||
},
|
||||
|
||||
"messages":{
|
||||
"creation":{"dm":false,"logs":true},
|
||||
"closing":{"dm":false,"logs":true},
|
||||
"deleting":{"dm":false,"logs":true},
|
||||
"reopening":{"dm":false,"logs":true},
|
||||
"claiming":{"dm":false,"logs":true},
|
||||
"pinning":{"dm":false,"logs":true},
|
||||
"adding":{"dm":false,"logs":true},
|
||||
"removing":{"dm":false,"logs":true},
|
||||
"renaming":{"dm":false,"logs":true},
|
||||
"moving":{"dm":false,"logs":true},
|
||||
"blacklisting":{"dm":false,"logs":true},
|
||||
"transferring":{"dm":false,"logs":true},
|
||||
"topicChange":{"dm":false,"logs":true},
|
||||
"priorityChange":{"dm":false,"logs":true},
|
||||
"reactionRole":{"dm":false,"logs":true}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
/*
|
||||
* Hi there! Thank you for installing Open Ticket.
|
||||
* ----------------------------------------------
|
||||
* If you need any assistance with configuring the bot,
|
||||
* feel free to use the documentation or join our Discord server:
|
||||
* https://otdocs.dj-dj.be
|
||||
* https://discord.dj-dj.be
|
||||
* ----------------------------------------------
|
||||
* SETUP:
|
||||
* 1. Install the required dependencies using the command: "npm install"
|
||||
* 2. Configure the bot in one of the following ways:
|
||||
* a. (easy) Using the Quick Setup CLI Tool
|
||||
* b. (difficult) Using the JSON files in `./config/`
|
||||
*
|
||||
* Start the Quick Setup CLI Tool using the command: "npm run setup"
|
||||
* After configuration, start the bot using the command: "npm start"
|
||||
*
|
||||
* Good luck! DJj123dj & contributors
|
||||
*/
|
||||
{
|
||||
"_CONFIG_VERSION":"open-ticket-v4.2.0",
|
||||
|
||||
/* Load the bot token from .env or the "token" field below. Leave "token" empty if using "tokenFromENV". */
|
||||
"token":"INSERT_BOT_TOKEN",
|
||||
"tokenFromENV":false,
|
||||
|
||||
"mainColor":"#f8ba00", //Hex color used in most embeds
|
||||
"language":"english", //Visit README.md for list
|
||||
"prefix":"!ticket ", //Prefix used in text commands
|
||||
"serverId":"DISCORD_SERVER_ID",
|
||||
"globalAdmins":["DISCORD_ROLE_ID"], //Have access to all commands
|
||||
|
||||
/* Enable/disable text or slash commands. */
|
||||
"slashCommands":true,
|
||||
"textCommands":true,
|
||||
|
||||
/* Configure the status of the bot. */
|
||||
"status":{
|
||||
"enabled":true,
|
||||
"type":"listening", //Choices: listening, watching, playing, custom
|
||||
"mode":"online", //Choices: online, invisible, idle, dnd
|
||||
"text":"/help",
|
||||
"state":"" //Additional text (Leave empty to disable)
|
||||
},
|
||||
|
||||
/* Send ticket logs to a channel or in DM of the ticket creator. */
|
||||
"logs":{
|
||||
"enabled":false,
|
||||
"channel":"DISCORD_CHANNEL_ID",
|
||||
"logMessages":{
|
||||
"creation":{"dm":false,"logs":true},
|
||||
"closing":{"dm":false,"logs":true},
|
||||
"deleting":{"dm":false,"logs":true},
|
||||
"reopening":{"dm":false,"logs":true},
|
||||
"claiming":{"dm":false,"logs":true},
|
||||
"pinning":{"dm":false,"logs":true},
|
||||
"adding":{"dm":false,"logs":true},
|
||||
"removing":{"dm":false,"logs":true},
|
||||
"renaming":{"dm":false,"logs":true},
|
||||
"moving":{"dm":false,"logs":true},
|
||||
"blacklisting":{"dm":false,"logs":true},
|
||||
"transferring":{"dm":false,"logs":true},
|
||||
"topicChange":{"dm":false,"logs":true},
|
||||
"priorityChange":{"dm":false,"logs":true},
|
||||
"reactionRole":{"dm":false,"logs":true}
|
||||
}
|
||||
},
|
||||
|
||||
/* A large collection of settings for the ticket system. */
|
||||
"ticketSystem":{
|
||||
"preferSlashOverText":true, //Show slashcmds in help menu's
|
||||
"sendErrorOnUnknownCommand":true, //Send error when command not found
|
||||
"questionFieldsInCodeBlock":true, //Put question answers in code blocks
|
||||
"displayFieldsWithQuestions":false, //Display embed fields together with question answers
|
||||
"showGlobalAdminsInPanelRoles":false, //Include "globalAdmins" in panel admin lists
|
||||
"disableVerifyBars":false, //Disable the (❌/✅) buttons
|
||||
"useRedErrorEmbeds":true, //Make errors embeds always red
|
||||
"alwaysShowReason":false, //Show reason even if none is provided
|
||||
"emojiStyle":"before", //The style of emoji's in embeds. Choices: before, after, double, disabled
|
||||
"pinEmoji":"📌", //Channel emoji of pinned tickets (Leave empty to disable)
|
||||
"closeEmoji":"🔒", //Channel emoji of closed tickets (Leave empty to disable)
|
||||
|
||||
"replyOnTicketCreation":true, //Reply with a msg when a ticket is created
|
||||
"replyOnReactionRole":true, //Reply with a msg when a reaction role is used
|
||||
"askPriorityOnTicketCreation":true, //Show a dropdown to select priority
|
||||
"removeParticipantsOnClose":false, //Remove non-admins when ticket is closed
|
||||
"disableAutocloseAfterReopen":true, //Disable autoclose after ticket got reopened
|
||||
"autodeleteRequiresClosedTicket":true, //A ticket must be closed before autodelete works
|
||||
"adminOnlyDeleteWithoutTranscript":true, //Only allow "globalAdmins" to delete a ticket without transcript
|
||||
"allowCloseBeforeMessage":false, //Allow closing before a message is sent
|
||||
"allowCloseBeforeAdminMessage":true, //Allow closing before an admin has sent a message
|
||||
"useTranslatedConfigChecker":true, //Translate config errors in the console
|
||||
"pinFirstTicketMessage":true, //Pin the ticket message to the channel
|
||||
|
||||
/* Enable/disable certain buttons & features of the bot. */
|
||||
"enableTicketClaimButtons":true,
|
||||
"enableTicketCloseButtons":true,
|
||||
"enableTicketPinButtons":true,
|
||||
"enableTicketDeleteButtons":true,
|
||||
"enableTicketActionWithReason":true,
|
||||
"enableDeleteWithoutTranscript":true, //Allow deleting tickets without transcript
|
||||
"enableCreateTicketForOtherUser":true, //Allow creating tickets for other users
|
||||
|
||||
/* Set the maximum amount of simultaneous tickets. */
|
||||
"limits":{
|
||||
"enabled":true,
|
||||
"globalMaximum":50,
|
||||
"userMaximum":3
|
||||
},
|
||||
|
||||
/* Choose which data is shown in the channel topic. */
|
||||
"channelTopic":{
|
||||
"showOptionName":true,
|
||||
"showOptionDescription":false,
|
||||
"showOptionTopic":true,
|
||||
"showPriority":false,
|
||||
"showClosed":true,
|
||||
"showClaimed":false,
|
||||
"showPinned":false,
|
||||
"showCreator":false,
|
||||
"showParticipants":false
|
||||
},
|
||||
|
||||
/* Move closed tickets to a separate category. */
|
||||
"closedCategory":{
|
||||
"enabled":false,
|
||||
"categoryId":"DISCORD_CATEGORY_ID"
|
||||
},
|
||||
|
||||
/* Create tickets in a backup category when the original category exceeds 50 channels. */
|
||||
"backupCategory":{
|
||||
"enabled":false,
|
||||
"categoryId":"DISCORD_CATEGORY_ID"
|
||||
},
|
||||
|
||||
/* Move claimed tickets to a matching category of the user that claimed the ticket. Set to empty list [] to disable. */
|
||||
"claimedCategories":[
|
||||
{"user":"DISCORD_USER_ID","category":"DISCORD_CATEGORY_ID"}
|
||||
]
|
||||
},
|
||||
|
||||
/*
|
||||
* Set permissions for each individual command, button or action.
|
||||
* CHOICES:
|
||||
* >> "none" -> Command disabled
|
||||
* >> "everyone" -> Allowed for everyone
|
||||
* >> "admin" -> Global & ticket admins only
|
||||
* >> "DISCORD_ROLE_ID" -> Custom role only
|
||||
*/
|
||||
"permissions":{
|
||||
"help":"everyone",
|
||||
"panel":"admin",
|
||||
"ticket":"none",
|
||||
"close":"everyone",
|
||||
"delete":"admin",
|
||||
"reopen":"everyone",
|
||||
"claim":"admin",
|
||||
"unclaim":"admin",
|
||||
"pin":"admin",
|
||||
"unpin":"admin",
|
||||
"move":"admin",
|
||||
"rename":"admin",
|
||||
"add":"admin",
|
||||
"remove":"admin",
|
||||
"blacklist":"admin",
|
||||
"stats":"everyone",
|
||||
"clear":"admin",
|
||||
"autoclose":"admin",
|
||||
"autodelete":"admin",
|
||||
"transfer":"admin",
|
||||
"topic":"admin",
|
||||
"priority":"admin",
|
||||
"transcripts":"admin"
|
||||
}
|
||||
}
|
||||
@@ -1,126 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id":"example-ticket",
|
||||
"name":"Question",
|
||||
"description":"Want to tell us something? Create this ticket for general questions for our support team. (leave empty to disable)",
|
||||
"type":"ticket",
|
||||
|
||||
"button":{
|
||||
"emoji":"🎫 (leave empty to disable)",
|
||||
"label":"question (leave empty to disable)",
|
||||
"color":"gray OR red OR green OR blue"
|
||||
},
|
||||
|
||||
"ticketAdmins":["DISCORD_ROLE_ID"],
|
||||
"readonlyAdmins":["DISCORD_ROLE_ID"],
|
||||
"allowCreationByBlacklistedUsers":false,
|
||||
"questions":["example-question-1","example-question-2"],
|
||||
|
||||
"channel":{
|
||||
"prefix":"question-",
|
||||
"suffix":"user-name OR user-id OR random-number OR random-hex OR counter-dynamic OR counter-fixed",
|
||||
"category":"category id (leave empty to disable)",
|
||||
"closedCategory":"category id (leave empty to disable)",
|
||||
"backupCategory":"category id (leave empty to disable)",
|
||||
"claimedCategory":[
|
||||
{"user":"USER_ID","category":"CATEGORY_ID"}
|
||||
],
|
||||
"topic":"This is the ticket topic shown in the channel. (leave empty to disable)"
|
||||
},
|
||||
|
||||
"dmMessage":{
|
||||
"enabled":false,
|
||||
"text":"",
|
||||
"embed":{
|
||||
"enabled":false,
|
||||
"title":"Question Ticket (leave empty to disable)",
|
||||
"description":"Thank you for creating a ticket in our server. We will try to help you as soon as possible. (leave empty to disable)",
|
||||
"customColor":"#f8ab00 (leave empty to disable)",
|
||||
|
||||
"image":"https://www.example.com/image.png (leave empty to disable)",
|
||||
"thumbnail":"https://www.example.com/image.png (leave empty to disable)",
|
||||
"fields":[
|
||||
{"name":"Field name","value":"Field value","inline":false}
|
||||
],
|
||||
"timestamp":false
|
||||
}
|
||||
},
|
||||
"ticketMessage":{
|
||||
"enabled":true,
|
||||
"text":"",
|
||||
"embed":{
|
||||
"enabled":true,
|
||||
"title":"Question Ticket",
|
||||
"description":"Thank you for creating a ticket in our server.\nOur support team will assist you as soon as possible. (leave empty to disable)",
|
||||
"customColor":"#f8ab00 (leave empty to disable)",
|
||||
|
||||
"image":"https://www.example.com/image.png (leave empty to disable)",
|
||||
"thumbnail":"https://www.example.com/image.png (leave empty to disable)",
|
||||
"fields":[
|
||||
{"name":"Field name","value":"Field value","inline":false}
|
||||
],
|
||||
"timestamp":false
|
||||
},
|
||||
"ping":{
|
||||
"@here":true,
|
||||
"@everyone":false,
|
||||
"custom":["DISCORD_ROLE_ID"]
|
||||
}
|
||||
},
|
||||
"autoclose":{
|
||||
"enableInactiveHours":false,
|
||||
"inactiveHours":24,
|
||||
"enableUserLeave":false,
|
||||
"disableOnClaim":false
|
||||
},
|
||||
"autodelete":{
|
||||
"enableInactiveDays":false,
|
||||
"inactiveDays":7,
|
||||
"enableUserLeave":false,
|
||||
"disableOnClaim":false
|
||||
},
|
||||
"cooldown":{
|
||||
"enabled":false,
|
||||
"cooldownMinutes":10
|
||||
},
|
||||
"limits":{
|
||||
"enabled":false,
|
||||
"globalMaximum":20,
|
||||
"userMaximum":3
|
||||
},
|
||||
"slowMode":{
|
||||
"enabled":false,
|
||||
"slowModeSeconds":20
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"example-website",
|
||||
"name":"Website",
|
||||
"description":"Take a look at our amazing website by clicking the button.",
|
||||
"type":"website",
|
||||
|
||||
"button":{
|
||||
"emoji":"😃",
|
||||
"label":"Visit Website"
|
||||
},
|
||||
|
||||
"url":"https://www.dj-dj.be"
|
||||
},
|
||||
{
|
||||
"id":"example-role",
|
||||
"name":"Update Ping",
|
||||
"description":"Click here to receive notifications about updates.",
|
||||
"type":"role",
|
||||
|
||||
"button":{
|
||||
"emoji":"📢",
|
||||
"label":"Update Ping",
|
||||
"color":"gray OR red OR green OR blue"
|
||||
},
|
||||
|
||||
"roles":["DISCORD_ROLE_ID"],
|
||||
"mode":"add&remove OR remove OR add",
|
||||
"removeRolesOnAdd":["DISCORD_ROLE_ID"],
|
||||
"addOnMemberJoin":false
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
* OPEN TICKET BUTTON OPTIONS
|
||||
* ----------------------------------------------
|
||||
* Create customizable ticket, website, reaction-role or sub-panel button options.
|
||||
* Up to 25 options can be added to each panel in (config/panels.jsonc)
|
||||
* There are 4 types of options available: ticket, website, role, sub-panel
|
||||
*
|
||||
* TIP: Create new options by copying everything between and including the {...} brackets of an option. Paste it after the last option and make sure that they are seperated by a comma.
|
||||
*/
|
||||
[
|
||||
{
|
||||
/* A ticket option creates a button to open a ticket. */
|
||||
"id":"example-ticket",
|
||||
"name":"Question",
|
||||
"description":"Want to tell us something? Create this ticket for general questions for our support team.", //Leave empty to disable
|
||||
"type":"ticket",
|
||||
|
||||
"button":{
|
||||
/* Configure the button style of this option. At least one of "emoji" or "label" must be provided. */
|
||||
"emoji":"🎫",
|
||||
"label":"Question",
|
||||
"color":"gray" //Choices: gray, red, green, blue
|
||||
},
|
||||
|
||||
/* Add up to 5 modal questions IDs from (config/questions.jsonc). */
|
||||
"questions":["example-question-1","example-question-2"],
|
||||
|
||||
"ticketAdmins":["DISCORD_ROLE_ID"],
|
||||
"readonlyAdmins":["DISCORD_ROLE_ID"],
|
||||
"allowCreationByBlacklistedUsers":false,
|
||||
|
||||
"channel":{
|
||||
/* Configure the name, topic and category of the ticket option. */
|
||||
"prefix":"question-",
|
||||
"suffix":"user-name", //Choices: user-name, user-id, random-number, random-hex, counter-dynamic, counter-fixed
|
||||
"category":"DISCORD_CATEGORY_ID", //Leave empty to disable
|
||||
"topic":"The ticket topic shown in the channel." //Leave empty to disable
|
||||
},
|
||||
|
||||
"dmMessage":{
|
||||
/* Send a customisable message in DM when creating a ticket. */
|
||||
"enabled":false,
|
||||
"text":"", //Leave empty to disable
|
||||
"embed":{
|
||||
"enabled":false,
|
||||
"title":"Question Ticket", //Leave empty to disable
|
||||
"description":"Thank you for creating a ticket in our server. We will try to help you as soon as possible.", //Leave empty to disable
|
||||
"customColor":"#f8ab00", //Leave empty to use default color
|
||||
|
||||
"image":"", //Image URL. Leave empty to disable
|
||||
"thumbnail":"", //Image URL. Leave empty to disable
|
||||
/* Embed fields. Set to empty list [] to disable. */
|
||||
"fields":[
|
||||
{"name":"Field name","value":"Field value","inline":false}
|
||||
],
|
||||
"timestamp":false
|
||||
}
|
||||
},
|
||||
"ticketMessage":{
|
||||
/* Send a customisable message in the ticket with close, claim, delete, ... buttons. */
|
||||
"enabled":true,
|
||||
"text":"", //Leave empty to disable
|
||||
"embed":{
|
||||
"enabled":true,
|
||||
"title":"Question Ticket", //Leave empty to disable
|
||||
"description":"Thank you for creating a ticket in our server.\nOur support team will assist you as soon as possible. (leave empty to disable)", //Leave empty to disable
|
||||
"customColor":"#f8ab00 (leave empty to disable)", //Leave empty to use default color
|
||||
|
||||
"image":"https://www.example.com/image.png (leave empty to disable)", //Image URL. Leave empty to disable
|
||||
"thumbnail":"https://www.example.com/image.png (leave empty to disable)", //Image URL. Leave empty to disable
|
||||
/* Embed fields. Set to empty list [] to disable. */
|
||||
"fields":[
|
||||
{"name":"Field name","value":"Field value","inline":false}
|
||||
],
|
||||
"timestamp":false
|
||||
},
|
||||
"ping":{
|
||||
/* Customise the user & role mentions of this ticket message. */
|
||||
"@here":true,
|
||||
"@everyone":false,
|
||||
"custom":["DISCORD_ROLE_ID"]
|
||||
}
|
||||
},
|
||||
"autoclose":{
|
||||
/* Autoclose this ticket after a period of inactivity or when the creator leaves the server. */
|
||||
"enableInactiveHours":false,
|
||||
"inactiveHours":24,
|
||||
"enableUserLeave":false,
|
||||
"disableOnClaim":false
|
||||
},
|
||||
"autodelete":{
|
||||
/* Autodelete this ticket after a period of inactivity or when the creator leaves the server. */
|
||||
"enableInactiveDays":false,
|
||||
"inactiveDays":7,
|
||||
"enableUserLeave":false,
|
||||
"disableOnClaim":false
|
||||
},
|
||||
"cooldown":{
|
||||
/* Users must wait a certain period before being able to create another ticket of this type. */
|
||||
"enabled":false,
|
||||
"cooldownMinutes":10
|
||||
},
|
||||
"limits":{
|
||||
/* Set the maximum amount of simultaneous tickets of this option. */
|
||||
"enabled":false,
|
||||
"globalMaximum":20,
|
||||
"userMaximum":3
|
||||
},
|
||||
"slowMode":{
|
||||
/* Enable slow-mode in the ticket channel. */
|
||||
"enabled":false,
|
||||
"slowModeSeconds":20
|
||||
}
|
||||
},
|
||||
{
|
||||
/* A website option creates a button with a URL to an external website. */
|
||||
"id":"example-website",
|
||||
"name":"Website",
|
||||
"description":"Take a look at our amazing website.", //Leave empty to disable
|
||||
"type":"website",
|
||||
|
||||
"button":{
|
||||
/* Configure the button style of this option. At least one of "emoji" or "label" must be provided. */
|
||||
"emoji":"😃",
|
||||
"label":"Visit Website"
|
||||
},
|
||||
|
||||
"url":"https://www.dj-dj.be"
|
||||
},
|
||||
{
|
||||
/* A reaction-role option creates a button for members to choose roles. */
|
||||
"id":"example-role",
|
||||
"name":"Update Ping",
|
||||
"description":"Receive notifications about updates in our server.", //Leave empty to disable
|
||||
"type":"role",
|
||||
|
||||
"button":{
|
||||
/* Configure the button style of this option. At least one of "emoji" or "label" must be provided. */
|
||||
"emoji":"📢",
|
||||
"label":"Update Ping",
|
||||
"color":"gray" //Choices: gray, red, green, blue
|
||||
},
|
||||
|
||||
"roles":["DISCORD_ROLE_ID"],
|
||||
"mode":"add&remove OR remove OR add", //What to do with the roles. Choices: add&remove, add, remove
|
||||
"removeRolesOnAdd":["DISCORD_ROLE_ID"], //Remove these old roles when new roles are added.
|
||||
"addOnMemberJoin":false //Add these roles automatically when joining the server.
|
||||
},
|
||||
{
|
||||
/* A sub-panel option creates a button which sends another panel for additional options. */
|
||||
"id":"example-sub-panel",
|
||||
"name":"Example Sub-Panel",
|
||||
"description":"This is an example of how to implement a sub-panel in Open Ticket.", //Leave empty to disable
|
||||
"type":"sub-panel",
|
||||
|
||||
"button":{
|
||||
/* Configure the button style of this option. At least one of "emoji" or "label" must be provided. */
|
||||
"emoji":"📋",
|
||||
"label":"Sub-Panel Example",
|
||||
"color":"gray" //Choices: gray, red, green, blue
|
||||
},
|
||||
|
||||
"subPanelId":"example-panel" //Choose a panel ID from (config/panels.jsonc)
|
||||
}
|
||||
]
|
||||
@@ -1,39 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id":"example-embed",
|
||||
"name":"Example Embed",
|
||||
"dropdown":false,
|
||||
"options":["example-ticket","example-website","example-role"],
|
||||
|
||||
"text":"",
|
||||
"embed":{
|
||||
"enabled":true,
|
||||
"title":"Tickets:",
|
||||
"description":"Create a ticket by selecting one of the options below. Once selected, a private ticket will be created for you and our support team will be able to assist you directly.",
|
||||
|
||||
"customColor":"#f8ab00 (leave empty to disable)",
|
||||
"url":"https://openticket.dj-dj.be (leave empty to disable)",
|
||||
|
||||
"image":"https://www.example.com/image.png (leave empty to disable)",
|
||||
"thumbnail":"https://www.example.com/image.png (leave empty to disable)",
|
||||
|
||||
"footer":"Open Ticket v4.1.3 (leave empty to disable)",
|
||||
"fields":[
|
||||
{"name":"Field name","value":"Field value","inline":false}
|
||||
],
|
||||
"timestamp":false
|
||||
},
|
||||
"settings":{
|
||||
"dropdownPlaceholder":"Choose a ticket type",
|
||||
|
||||
"enableMaxTicketsWarningInText":false,
|
||||
"enableMaxTicketsWarningInEmbed":true,
|
||||
|
||||
"describeOptionsLayout":"simple OR normal OR detailed",
|
||||
"describeOptionsCustomTitle":"",
|
||||
"describeOptionsInText":false,
|
||||
"describeOptionsInEmbedFields":true,
|
||||
"describeOptionsInEmbedDescription":false
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* OPEN TICKET PANELS
|
||||
* ----------------------------------------------
|
||||
* Create customizable panel messages with buttons or a dropdown.
|
||||
* Add up to 25 options to this panel from (config/options.jsonc)
|
||||
* Panels can be customised with text, images, colors and more.
|
||||
*
|
||||
* Spawn the panel in Discord using: /panel <id>
|
||||
*
|
||||
* TIP: Create new panels by copying everything between and including the {...} brackets of an panel. Paste it after the last panel and make sure that they are seperated by a comma.
|
||||
*/
|
||||
[
|
||||
{
|
||||
/* A panel is creates a message with up to 25 options as buttons or dropdown. */
|
||||
"id":"example-panel",
|
||||
"name":"Example Panel",
|
||||
"dropdown":false,
|
||||
|
||||
/* Add up to 5 option IDs from (config/options.jsonc). */
|
||||
"options":["example-ticket","example-website","example-role"],
|
||||
|
||||
"text":"", //Leave empty to disable
|
||||
"embed":{
|
||||
"enabled":true,
|
||||
"title":"Tickets:", //Leave empty to disable
|
||||
"description":"Create a ticket by selecting one of the options below. Once selected, a private ticket will be created for you and our support team will be able to assist you directly.", //Leave empty to disable
|
||||
|
||||
"customColor":"#f8ab00", //Leave empty to use default color
|
||||
"url":"", //URL. Leave empty to disable
|
||||
|
||||
"image":"", //Image URL. Leave empty to disable
|
||||
"thumbnail":"", //Image URL. Leave empty to disable
|
||||
|
||||
"footer":"Open Ticket v4.2.0", //Leave empty to disable
|
||||
/* Embed fields. Set to empty list [] to disable. */
|
||||
"fields":[
|
||||
{"name":"Field name","value":"Field value","inline":false}
|
||||
],
|
||||
"timestamp":false
|
||||
},
|
||||
"settings":{
|
||||
"dropdownPlaceholder":"Create a ticket...", //Leave empty to use default.
|
||||
"maximumButtonsPerRow":5,
|
||||
|
||||
/* Display the maximum amount of tickets per user. */
|
||||
"enableMaxTicketsWarningInText":false,
|
||||
"enableMaxTicketsWarningInEmbed":true,
|
||||
|
||||
/* Automatically generate option descriptions from (config/options.jsonc). */
|
||||
"describeOptionsLayout":"normal", //Choices: simple, normal, detailed
|
||||
"describeOptionsCustomTitle":"",
|
||||
"describeOptionsInText":false,
|
||||
"describeOptionsInEmbedFields":true,
|
||||
"describeOptionsInEmbedDescription":false
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,28 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id":"example-question-1",
|
||||
"name":"Example Question 1",
|
||||
"type":"short",
|
||||
|
||||
"required":true,
|
||||
"placeholder":"An example short text question.",
|
||||
"length":{
|
||||
"enabled":false,
|
||||
"min":0,
|
||||
"max":1000
|
||||
}
|
||||
},
|
||||
{
|
||||
"id":"example-question-2",
|
||||
"name":"Example Question 2",
|
||||
"type":"paragraph",
|
||||
|
||||
"required":false,
|
||||
"placeholder":"An example paragraph text question.",
|
||||
"length":{
|
||||
"enabled":false,
|
||||
"min":0,
|
||||
"max":1000
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* OPEN TICKET MODAL QUESTIONS
|
||||
* ----------------------------------------------
|
||||
* Create customizable modal questions that will be shown before creating a ticket.
|
||||
* Each ticket option (config/options.jsonc) can contain a maximum of 5 questions.
|
||||
* There are 6 types of questions available: short, paragraph, dropdown, radio-select, checkbox-select, text-display
|
||||
*
|
||||
* TIP: Create new questions by copying everything between and including the {...} brackets of a question. Paste it after the last question and make sure that they are seperated by a comma.
|
||||
*/
|
||||
[
|
||||
{
|
||||
/* A short text input modal question. */
|
||||
"id":"example-question-1",
|
||||
"name":"Example Question 1",
|
||||
"description":"", //Leave empty to disable
|
||||
"type":"short",
|
||||
"required":true,
|
||||
|
||||
"placeholder":"Insert answer...",
|
||||
"length":{
|
||||
/* Configure length limits for the answer. */
|
||||
"enabled":false,
|
||||
"min":0,
|
||||
"max":1000
|
||||
}
|
||||
},
|
||||
{
|
||||
/* A paragraph text input modal question. */
|
||||
"id":"example-question-2",
|
||||
"name":"Example Question 2",
|
||||
"description":"", //Leave empty to disable
|
||||
"type":"paragraph",
|
||||
"required":false,
|
||||
|
||||
"placeholder":"Insert answer...",
|
||||
"length":{
|
||||
/* Configure length limits for the answer. */
|
||||
"enabled":false,
|
||||
"min":0,
|
||||
"max":1000
|
||||
}
|
||||
},
|
||||
{
|
||||
/* A dropdown menu input modal question with up to 25 choices. "emoji" & "description" fields are optional. */
|
||||
"id":"example-question-3",
|
||||
"name":"Example Question 3",
|
||||
"description":"This is a dropdown question.", //Leave empty to disable
|
||||
"type":"dropdown",
|
||||
"required":false,
|
||||
|
||||
"placeholder":"Choose your answer...",
|
||||
"choices":[
|
||||
{"title":"Choice A","description":"Apple","emoji":"🍎"},
|
||||
{"title":"Choice B","description":"Banana","emoji":"🍌"},
|
||||
{"title":"Choice C","description":"Orange","emoji":"🍊"},
|
||||
{"title":"Choice D","description":"Kiwi","emoji":"🥝"}
|
||||
]
|
||||
},
|
||||
{
|
||||
/* A radio select input modal question with up to 10 choices. */
|
||||
"id":"example-question-4",
|
||||
"name":"Example Question 4",
|
||||
"description":"This is a radio select question.", //Leave empty to disable
|
||||
"type":"radio-select",
|
||||
"required":true,
|
||||
|
||||
"choices":[
|
||||
{"title":"Choice A","description":"Up","selectedByDefault":false},
|
||||
{"title":"Choice B","description":"Down","selectedByDefault":false},
|
||||
{"title":"Choice C","description":"Left","selectedByDefault":false},
|
||||
{"title":"Choice D","description":"Right","selectedByDefault":false}
|
||||
]
|
||||
},
|
||||
{
|
||||
/* A checkbox select input modal question with up to 10 choices. */
|
||||
"id":"example-question-5",
|
||||
"name":"Example Question 5",
|
||||
"description":"This is a checkbox select question.", //Leave empty to disable
|
||||
"type":"checkbox-select",
|
||||
"required":true,
|
||||
|
||||
"limits":{
|
||||
/* Configure checkbox amount limits for the answer. */
|
||||
"enabled":false,
|
||||
"min":0,
|
||||
"max":10
|
||||
},
|
||||
"choices":[
|
||||
{"title":"Choice A","description":"Happiness","selectedByDefault":false},
|
||||
{"title":"Choice B","description":"Anger","selectedByDefault":false},
|
||||
{"title":"Choice C","description":"Sadness","selectedByDefault":false},
|
||||
{"title":"Choice D","description":"Fear","selectedByDefault":false}
|
||||
]
|
||||
},
|
||||
{
|
||||
/* Show text in a modal to provide extra details or explain questions. */
|
||||
"id":"example-text-display",
|
||||
"type":"text-display",
|
||||
|
||||
"textContents":"This is a text display. It isn't a question, but allows you to display additional details."
|
||||
}
|
||||
]
|
||||
@@ -1,55 +0,0 @@
|
||||
{
|
||||
"general":{
|
||||
"enabled":false,
|
||||
|
||||
"enableChannel":false,
|
||||
"enableCreatorDM":false,
|
||||
"enableParticipantDM":false,
|
||||
"enableActiveAdminDM":false,
|
||||
"enableEveryAdminDM":false,
|
||||
|
||||
"channel":"DISCORD_TRANSCRIPT_CHANNEL_ID (leave empty to disable)",
|
||||
"mode":"html OR text"
|
||||
},
|
||||
"embedSettings":{
|
||||
"customColor":"#f8ab00 (leave empty to disable)",
|
||||
"listAllParticipants":false,
|
||||
"includeTicketStats":false
|
||||
},
|
||||
"textTranscriptStyle":{
|
||||
"layout":"simple OR normal OR detailed",
|
||||
"includeStats":true,
|
||||
"includeIds":false,
|
||||
"includeEmbeds":true,
|
||||
"includeFiles":true,
|
||||
"includeBotMessages":true,
|
||||
|
||||
"fileMode":"custom OR channel-name OR channel-id OR user-name OR user-id",
|
||||
"customFileName":"transcript"
|
||||
},
|
||||
"htmlTranscriptStyle":{
|
||||
"background":{
|
||||
"enableCustomBackground":false,
|
||||
"backgroundColor":"#f8ba00 (leave empty to disable)",
|
||||
"backgroundImage":"https://www.example.com/image.png (leave empty to disable)"
|
||||
},
|
||||
"header":{
|
||||
"enableCustomHeader":false,
|
||||
"backgroundColor":"#202225",
|
||||
"decoColor":"#f8ba00",
|
||||
"textColor":"#ffffff"
|
||||
},
|
||||
"stats":{
|
||||
"enableCustomStats":false,
|
||||
"backgroundColor":"#202225",
|
||||
"keyTextColor":"#737373",
|
||||
"valueTextColor":"#ffffff",
|
||||
"hideBackgroundColor":"#40444a",
|
||||
"hideTextColor":"#ffffff"
|
||||
},
|
||||
"favicon":{
|
||||
"enableCustomFavicon":false,
|
||||
"imageUrl":"https://t.dj-dj.be/favicon.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* OPEN TICKET TRANSCRIPTS
|
||||
* ----------------------------------------------
|
||||
* Enable transcript creation when tickets are deleted. There are 2 available transcript types: HTML & Text
|
||||
*
|
||||
* HTML Transcripts (recommended):
|
||||
* Generate transcripts as HTML files to view in the browser. No server or domain required. HTML Transcripts use an external service to process and host the transcripts.
|
||||
*
|
||||
* Text Transcripts:
|
||||
* Generate transcripts as simple .txt files with limited details. Processing happens fully local.
|
||||
*/
|
||||
{
|
||||
"general":{
|
||||
"enabled":false,
|
||||
|
||||
/* Choose which users and channel get the generated transcript. */
|
||||
"enableChannel":false,
|
||||
"enableCreatorDM":false,
|
||||
"enableParticipantDM":false,
|
||||
"enableActiveAdminDM":false,
|
||||
"enableEveryAdminDM":false,
|
||||
|
||||
"channel":"DISCORD_CHANNEL_ID", //Where to send transcripts. Leave empty when disabled.
|
||||
"mode":"html" //The type of transcript to use. Choices: html, text
|
||||
},
|
||||
"embedSettings":{
|
||||
/* Customise the embed which contains the generated transcript file or URL. */
|
||||
"customColor":"#f8ab00", //Leave empty to use default color
|
||||
"listAllParticipants":false,
|
||||
"includeTicketStats":false
|
||||
},
|
||||
"textTranscriptStyle":{
|
||||
/* Customise layout of the text transcripts. */
|
||||
"layout":"normal", //Choices: simple, normal, detailed
|
||||
"includeStats":true,
|
||||
"includeIds":false,
|
||||
"includeEmbeds":true,
|
||||
"includeFiles":true,
|
||||
"includeBotMessages":true,
|
||||
|
||||
"fileMode":"custom", //How to name the transcript file? Choices: custom, channel-name, channel-id, user-name, user-id
|
||||
"customFileName":"transcript" //Custom filename without extension
|
||||
},
|
||||
"htmlTranscriptStyle":{
|
||||
/* Customise layout of the HTML transcripts. */
|
||||
"background":{
|
||||
"enableCustomBackground":false,
|
||||
"backgroundColor":"#f8ba00", //Leave empty to use Open Ticket color (#f8ba00)
|
||||
"backgroundImage":"https://www.example.com/image.png" //Image URL to fill entire background. Leave empty to disable
|
||||
},
|
||||
"header":{
|
||||
"enableCustomHeader":false,
|
||||
"backgroundColor":"#202225",
|
||||
"decoColor":"#f8ba00",
|
||||
"textColor":"#ffffff"
|
||||
},
|
||||
"stats":{
|
||||
"enableCustomStats":false,
|
||||
"backgroundColor":"#202225",
|
||||
"keyTextColor":"#737373",
|
||||
"valueTextColor":"#ffffff",
|
||||
"hideBackgroundColor":"#40444a",
|
||||
"hideTextColor":"#ffffff"
|
||||
},
|
||||
"favicon":{
|
||||
"enableCustomFavicon":false,
|
||||
"imageUrl":"https://t.dj-dj.be/favicon.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user