Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
739ad81f3f | ||
|
|
a6f67a9452 |
+1
-1
@@ -10,7 +10,7 @@ Support for Open Ticket is only available for the versions specified below!
|
|||||||
|
|
||||||
| Version | Supported |
|
| Version | Supported |
|
||||||
| ------- | ------------------ |
|
| ------- | ------------------ |
|
||||||
| 3.3.2 | :white_check_mark: |
|
| 3.3.3 | :white_check_mark: |
|
||||||
| 3.3.0 | 🟧 |
|
| 3.3.0 | 🟧 |
|
||||||
| 3.2.2 | 🟧 |
|
| 3.2.2 | 🟧 |
|
||||||
| < 3.2.2 | :x: |
|
| < 3.2.2 | :x: |
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<img src="https://www.dj-dj.be/wp-content/uploads/2023/02/open-ticket-cropped.png" alt="Open Ticket" width="600px">
|
<img src="https://www.dj-dj.be/wp-content/uploads/2023/02/open-ticket-cropped.png" alt="Open Ticket" width="600px">
|
||||||
|
|
||||||
[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/DJj123dj/open-ticket/releases/tag/v3.3.2) []() [](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE) [](https://docs.openticket.dj-dj.be)
|
[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/DJj123dj/open-ticket/releases/tag/v3.3.3) []() [](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE) [](https://docs.openticket.dj-dj.be)
|
||||||
|
|
||||||
### Open Ticket
|
### Open Ticket
|
||||||
Open Ticket is of the most customisable discord ticket bots of all time!
|
Open Ticket is of the most customisable discord ticket bots of all time!
|
||||||
@@ -62,7 +62,7 @@ Translators
|
|||||||
|Slovenian |n1kkec#5341 |
|
|Slovenian |n1kkec#5341 |
|
||||||
|
|
||||||
## links
|
## links
|
||||||
current version: _v3.3.2_
|
current version: _v3.3.3_
|
||||||
</br>changelog: [click here](https://docs.openticket.dj-dj.be/other/changelog)
|
</br>changelog: [click here](https://docs.openticket.dj-dj.be/other/changelog)
|
||||||
</br>documentation: [click here](https://docs.openticket.dj-dj.be/quick-start)
|
</br>documentation: [click here](https://docs.openticket.dj-dj.be/quick-start)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -102,7 +102,7 @@
|
|||||||
"dropdown":false,
|
"dropdown":false,
|
||||||
|
|
||||||
"enableFooter":false,
|
"enableFooter":false,
|
||||||
"footer":"Open Ticket v3.3.2 - I'm a footer!",
|
"footer":"Open Ticket v3.3.3 - I'm a footer!",
|
||||||
|
|
||||||
"enableFooterImage":false,
|
"enableFooterImage":false,
|
||||||
"footerImage":"https://www.example.com/catmemes/cat.png",
|
"footerImage":"https://www.example.com/catmemes/cat.png",
|
||||||
|
|||||||
@@ -47,12 +47,11 @@ module.exports = () => {
|
|||||||
|
|
||||||
//ticketoptions from config
|
//ticketoptions from config
|
||||||
const currentTicketOptions = configParser.getTicketById(customId)
|
const currentTicketOptions = configParser.getTicketById(customId)
|
||||||
|
|
||||||
if (currentTicketOptions == false) return interaction.reply({embeds:[bot.errorLog.serverError(l.errors.anotherOption)]})
|
if (currentTicketOptions == false) return interaction.reply({embeds:[bot.errorLog.serverError(l.errors.anotherOption)]})
|
||||||
|
|
||||||
if (interaction.isButton()){
|
if (interaction.isButton()){
|
||||||
try {
|
try {
|
||||||
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpe})
|
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
|
||||||
} catch{}
|
} catch{}
|
||||||
}else if (interaction.isChatInputCommand()){
|
}else if (interaction.isChatInputCommand()){
|
||||||
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
|
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version":"1.0.0",
|
"version":"1.0.0",
|
||||||
"otversion":"3.3.2",
|
"otversion":"3.3.3",
|
||||||
"style":{
|
"style":{
|
||||||
"enableCustomBackground":false,
|
"enableCustomBackground":false,
|
||||||
"backgroundModus":"color OR image",
|
"backgroundModus":"color OR image",
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
exports.readHiddenData = (messageContent) => {
|
exports.readHiddenData = (messageContent) => {
|
||||||
//ticketdata//type:123|userid:456)
|
//ticketdata//type:123|userid:456)
|
||||||
if (!messageContent.includes("[ ](OTDATA|")) return {type:"",data:[],status:false}
|
if (!messageContent.includes("[ ](https://OTDATA|")) return {type:"",data:[],status:false}
|
||||||
const rawhidden = messageContent.split("[ ](OTDATA|")[1]
|
const rawhidden = messageContent.split("[ ](https://OTDATA|")[1]
|
||||||
const rawhidden2 = rawhidden.split("//")
|
const rawhidden2 = rawhidden.split("//")
|
||||||
|
|
||||||
const datatype = rawhidden2[0]
|
const datatype = rawhidden2[0]
|
||||||
@@ -47,7 +47,7 @@ exports.writeHiddenData = (type,data) => {
|
|||||||
|
|
||||||
const datastring = dataValues.join("|")
|
const datastring = dataValues.join("|")
|
||||||
|
|
||||||
const result = "[ ](OTDATA|"+type+"//"+datastring+")"
|
const result = "[ ](https://OTDATA|"+type+"//"+datastring+")"
|
||||||
|
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
@@ -58,10 +58,10 @@ exports.writeHiddenData = (type,data) => {
|
|||||||
* @returns {{description:String,hiddenData:hiddenData}}
|
* @returns {{description:String,hiddenData:hiddenData}}
|
||||||
*/
|
*/
|
||||||
exports.removeHiddenData = (description) => {
|
exports.removeHiddenData = (description) => {
|
||||||
if (!description.includes("[ ](OTDATA|")) return {description:description,hiddenData:[]}
|
if (!description.includes("[ ](https://OTDATA|")) return {description:description,hiddenData:[]}
|
||||||
|
|
||||||
const hiddenData = this.readHiddenData(description)
|
const hiddenData = this.readHiddenData(description)
|
||||||
const splitted = description.split("[ ](OTDATA")
|
const splitted = description.split("[ ](https://OTDATA")
|
||||||
const original = splitted[0]
|
const original = splitted[0]
|
||||||
|
|
||||||
return {description:original,hiddenData:hiddenData}
|
return {description:original,hiddenData:hiddenData}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
INFORMATION:
|
INFORMATION:
|
||||||
============
|
============
|
||||||
Open Ticket v3.3.2 - © DJdj Development
|
Open Ticket v3.3.3 - © DJdj Development
|
||||||
|
|
||||||
discord: https://discord.dj-dj.be
|
discord: https://discord.dj-dj.be
|
||||||
website: https://www.dj-dj.be
|
website: https://www.dj-dj.be
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "open-ticket",
|
"name": "open-ticket",
|
||||||
"version": "3.3.2",
|
"version": "3.3.3",
|
||||||
"description": "This is an open-source discord ticket bot, you can configure it and it comes with cool features like a transcript.",
|
"description": "This is an open-source discord ticket bot, you can configure it and it comes with cool features like a transcript.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user