Skip to content

Commit

Permalink
v3.3.3 MAJOR FIX!
Browse files Browse the repository at this point in the history
v3.3.3 MAJOR FIX!
  • Loading branch information
DJj123dj authored Apr 22, 2023
2 parents 56a6540 + a6f67a9 commit 739ad81
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Support for Open Ticket is only available for the versions specified below!

| Version | Supported |
| ------- | ------------------ |
| 3.3.2 | :white_check_mark: |
| 3.3.3 | :white_check_mark: |
| 3.3.0 | 🟧 |
| 3.2.2 | 🟧 |
| < 3.2.2 | :x: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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">

[![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 is of the most customisable discord ticket bots of all time!
Expand Down Expand Up @@ -62,7 +62,7 @@ Translators
|Slovenian |n1kkec#5341 |

## links
current version: _v3.3.2_
current version: _v3.3.3_
</br>changelog: [click here](https://docs.openticket.dj-dj.be/other/changelog)
</br>documentation: [click here](https://docs.openticket.dj-dj.be/quick-start)

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"dropdown":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,
"footerImage":"https://www.example.com/catmemes/cat.png",
Expand Down
3 changes: 1 addition & 2 deletions core/ticketActions/ticketOpener.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ module.exports = () => {

//ticketoptions from config
const currentTicketOptions = configParser.getTicketById(customId)

if (currentTicketOptions == false) return interaction.reply({embeds:[bot.errorLog.serverError(l.errors.anotherOption)]})

if (interaction.isButton()){
try {
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpe})
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
} catch{}
}else if (interaction.isChatInputCommand()){
await interaction.deferReply({ephemeral:config.system.answerInEphemeralOnOpen})
Expand Down
2 changes: 1 addition & 1 deletion core/transcriptSystem/communication/template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version":"1.0.0",
"otversion":"3.3.2",
"otversion":"3.3.3",
"style":{
"enableCustomBackground":false,
"backgroundModus":"color OR image",
Expand Down
10 changes: 5 additions & 5 deletions core/utils/hiddendata.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

exports.readHiddenData = (messageContent) => {
//ticketdata//type:123|userid:456)
if (!messageContent.includes("[ ](OTDATA|")) return {type:"",data:[],status:false}
const rawhidden = messageContent.split("[ ](OTDATA|")[1]
if (!messageContent.includes("[ ](https://OTDATA|")) return {type:"",data:[],status:false}
const rawhidden = messageContent.split("[ ](https://OTDATA|")[1]
const rawhidden2 = rawhidden.split("//")

const datatype = rawhidden2[0]
Expand Down Expand Up @@ -47,7 +47,7 @@ exports.writeHiddenData = (type,data) => {

const datastring = dataValues.join("|")

const result = "[ ](OTDATA|"+type+"//"+datastring+")"
const result = "[ ](https://OTDATA|"+type+"//"+datastring+")"

return result
}
Expand All @@ -58,10 +58,10 @@ exports.writeHiddenData = (type,data) => {
* @returns {{description:String,hiddenData:hiddenData}}
*/
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 splitted = description.split("[ ](OTDATA")
const splitted = description.split("[ ](https://OTDATA")
const original = splitted[0]

return {description:original,hiddenData:hiddenData}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
INFORMATION:
============
Open Ticket v3.3.2 - © DJdj Development
Open Ticket v3.3.3 - © DJdj Development
discord: https://discord.dj-dj.be
website: https://www.dj-dj.be
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 739ad81

Please sign in to comment.