v3.3.3 MAJOR FIX!

v3.3.3 MAJOR FIX!
This commit is contained in:
Jasper
2023-04-22 16:53:32 +02:00
committed by GitHub
8 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -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: |
+2 -2
View File
@@ -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">
[![discord](https://img.shields.io/badge/discord-join%20our%20server-5865F2.svg?style=flat-square&logo=discord)](https://discord.com/invite/26vT9wt3n3) [![version](https://img.shields.io/badge/version-3.3.2-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.3.2) [![discord.js](https://img.shields.io/badge/discord.js-v14-CB3837.svg?style=flat-square&logo=npm)]() [![license](https://img.shields.io/badge/license-GPL%203.0-important.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE) [![stars](https://img.shields.io/github/stars/djj123dj/open-ticket?color=yellow&label=stars&logo=github&style=flat-square)](https://docs.openticket.dj-dj.be) [![discord](https://img.shields.io/badge/discord-join%20our%20server-5865F2.svg?style=flat-square&logo=discord)](https://discord.com/invite/26vT9wt3n3) [![version](https://img.shields.io/badge/version-3.3.3-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.3.3) [![discord.js](https://img.shields.io/badge/discord.js-v14-CB3837.svg?style=flat-square&logo=npm)]() [![license](https://img.shields.io/badge/license-GPL%203.0-important.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/blob/main/LICENSE) [![stars](https://img.shields.io/github/stars/djj123dj/open-ticket?color=yellow&label=stars&logo=github&style=flat-square)](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
View File
@@ -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",
+1 -2
View File
@@ -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",
+5 -5
View File
@@ -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}
+1 -1
View File
@@ -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
View File
@@ -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": {