Skip to content

Commit

Permalink
Open Ticket v3.5.3
Browse files Browse the repository at this point in the history
Open Ticket v3.5.3
  • Loading branch information
DJj123dj authored Feb 5, 2024
2 parents 466a4ae + e0f4283 commit 407e56a
Show file tree
Hide file tree
Showing 29 changed files with 166 additions and 235 deletions.
27 changes: 13 additions & 14 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
# Security Policy

## Supported Versions

We only support Open Ticket versions listed below! With support, we mean bugs, errors & helping you further!

✅ Supported
🟧 Partially Supported
❌ Not Supported

| Version | Supported |
|-----------|-------------------|
| 3.5.2 ||
| 3.5.1 ||
| 3.5.0 ||
| 3.4.4 | 🟧 |
| < 3.4.4 ||
Below, you can find a list with the status of every open ticket version. This list will change every update!

- ✅ Supported **(bugs, errors, discord support, documentation, html transcripts)**
- 🟧 Deprecated / Partially Supported **(discord support, documentation, html transcripts)**
- ❌ Fully Deprecated / Not Supported **(sometimes documentation)**

| Version | Supported | Until |
|-----------|-----------|-----------------------------|
| 3.5.3 || |
| 3.5.2 || April 2024 |
| 3.5.1 | 🟧 | Next Update |
| 3.5.0 | 🟧 | Next Update |
| < 3.5.0 || |

## Reporting a Vulnerability

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ There will be massive improvements for more stability & features! But the best p

<img src="https://apis.dj-dj.be/cdn/openticket/logo.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.5.2-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.5.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.5.3-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.5.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 the most customisable discord ticket bot that you will ever find! There are more than 150 options to customise in the config! This includes html transcripts, unlimited amount of tickets, custom embeds & more! Did you know that even the html transcripts are highly customisable? Don't wait and check it out! If you're having trouble setting the bot up, feel free to join our support server and we will help you further!
Expand Down Expand Up @@ -64,7 +64,7 @@ Take a look at all the features and discover the possibilities!
|German |david.3 |🟢 Up To Date |
|Italian |maurizio26 |🟢 Up To Date |
|Czech |spyeye_ |🟢 Up To Date |
|Arabic |Sarcastic#9318 |🔴 Outdated |
|Arabic |deqressing |🟢 Up To Date |
|Danish |.the_gamer |🟢 Up To Date |
|Portuguese |quiradon |🔴 Outdated |
|Russian |apexo & ander |🟢 Up To Date |
Expand All @@ -78,7 +78,7 @@ Take a look at all the features and discover the possibilities!
|Indonesian |erxg |🟢 Up To Date |

## links
current version: _v3.5.2_
current version: _v3.5.3_
</br>changelog: [click here](https://otgithub.dj-dj.be/releases)
</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 @@ -111,7 +111,7 @@
"dropdown":false,

"enableFooter":false,
"footer":"Open Ticket v3.5.2 - I'm a footer!",
"footer":"Open Ticket v3.5.3 - I'm a footer!",

"enableFooterImage":false,
"footerImage":"https://www.example.com/catmemes/cat.png",
Expand Down
2 changes: 1 addition & 1 deletion core/utils/getDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ exports.getDropdown = (ids,placeholder) => {
}else{
if (option.label) selectComponent.setLabel(option.label)
if (option.icon) selectComponent.setEmoji(option.icon)
if (option.description) selectComponent.setDescription(option.description)
if (option.description && option.description.length < 100) selectComponent.setDescription(option.description)
}

dropdown.addOptions(selectComponent)
Expand Down
76 changes: 0 additions & 76 deletions core/utils/liveStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,80 +134,4 @@ exports.run = async (pluginData) => {
})

console.log(final.join("\n\n"))
}

var waitTime = new Date().getTime()
var waitTimeEnabled = false

/**@param {OTLiveStatusError} options @returns {Promise<Boolean>} */
const uploadLiveStatus = (options) => {
return new Promise((resolve,reject) => {
if (process.argv.some((v) => v == "--noerrorupload")) return resolve(true)
try {
var data = encodeURIComponent(JSON.stringify(options))
axios.get("https://livestatus.dj-dj.be/openticket?auth=openticketLIVESTATUS1234&data="+data).then((res) => {
if (res.status == 200) resolve(true)
else resolve(false)
})
}catch{
resolve(false)
}
})
}

/**@param {String} err @returns {Promise<Boolean>}*/
exports.liveStatusUploadManager = async (err) => {
return new Promise(async (resolve) => {

if (process.argv.some((v) => v == "--noerrorupload")) return resolve(true)
else{
var tsenabled = (bot.tsconfig.sendTranscripts.enableChannel || bot.tsconfig.sendTranscripts.enableDM)
var tsmode = bot.tsconfig.sendTranscripts.useHTMLtranscripts ? "html" : "text"
const transcriptMode = tsenabled ? tsmode : false
const slashMode = getSlashEnabled()

try {
if (waitTimeEnabled){
if (new Date().getTime() < waitTime){
waitTimeEnabled = false
return resolve(false)
}
}
const result = await uploadLiveStatus({
bot:{
id:client.user.id,
name:client.user.username,
pfp:client.user.displayAvatarURL()
},
error:err,
openticket:{
config:{
//TEMPORARY SOLUTION => AXIOS 414 ERROR!
//messages:config.messages,
//options:config.options,
//transcripts:bot.tsconfig,
//system:config.system
},
language:config.languageFile,
version:"3.5.2",
slashcmds:slashMode,
transcripts:transcriptMode,
plugins:fs.readdirSync("./plugins"),
pluginload:globalPluginData
},
details:{
errortime:new Date().getTime()
//TEMPORARY SOLUTION => AXIOS 414 ERROR!
//actions:this.actionRecorder,
//database:fs.readFileSync("./storage/database.json").toString()
}
})
if (!result){
waitTime = new Date().getTime()+30000
waitTimeEnabled = true
}
resolve(result)
}catch{resolve(false)}
}
})
}
7 changes: 1 addition & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
INFORMATION:
============
Open Ticket v3.5.2 - © DJdj Development
Open Ticket v3.5.3 - © DJdj Development
discord: https://discord.dj-dj.be
website: https://www.dj-dj.be
Expand Down Expand Up @@ -382,11 +382,6 @@ process.on("uncaughtException",async (error,origin) => {
errorLog(error.name+": "+error.message+" | origin: "+origin,error.stack)

APIEvents.onError(error.name+": "+error.message,new Date())

//TEMPORARY INTEGRATION FOR LIVESTATUS ERROR UPLOADER:
try {
await require("./core/utils/liveStatus").liveStatusUploadManager(error.name+": "+error.message+" | origin: "+origin+"\n"+error.stack)
} catch {this.errorLog.log("info","FAILED TO AUTO-REPORT ERROR! (you can ignore this error)")}
})

this.actionRecorder.push({
Expand Down
Loading

0 comments on commit 407e56a

Please sign in to comment.