Skip to content

Commit

Permalink
Open Ticket v3.4.2
Browse files Browse the repository at this point in the history
Open Ticket v3.4.2
  • Loading branch information
DJj123dj authored Aug 11, 2023
2 parents 447fdde + 589bbe5 commit 1bb7074
Show file tree
Hide file tree
Showing 29 changed files with 145 additions and 38 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.4.1 ||
| 3.4.2 ||
| 3.4.0 ||
| 3.3.3 | 🟧 |
| < 3.3.3 ||
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.4.1-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.4.1) [![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.4.2-brightgreen.svg?style=flat-square)](https://github.com/DJj123dj/open-ticket/releases/tag/v3.4.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)

### 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 @@ Translators
|Ukrainian |anderskiy |

## links
current version: _v3.4.1_
current version: _v3.4.2_
</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 @@ -111,7 +111,7 @@
"dropdown":false,

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

"enableFooterImage":false,
"footerImage":"https://www.example.com/catmemes/cat.png",
Expand Down
26 changes: 16 additions & 10 deletions core/api/pluginlauncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const bot = require("../../index")
const log = bot.errorLog.log

module.exports = () => {
const args = process.argv
const debugMode = args.includes("--debug")

const files = fs.readdirSync("./plugins")
const api = require("./api.json")
var totalcount = 0
Expand All @@ -11,27 +14,30 @@ module.exports = () => {
files.forEach((file) => {
if (file.endsWith(".plugin.js")){
try {
require("../../plugins/"+file)()
require("../../plugins/" + file)()

successcount++
totalcount++
}catch(err){
/**@type {Error} */
const theError = err
if (api.enableAPIdebug){
try {
const data = fs.readFileSync("./apiDebug.txt")
const newData = data ? data.toString() : ""
fs.writeFileSync("./apiDebug.txt",newData+"ERROR: "+theError.name+": "+theError.message+"\n"+theError.stack+"\n\n")
}catch{
fs.writeFileSync("./apiDebug.txt","ERROR: "+theError.name+": "+theError.message+"\n"+theError.stack+"\n\n")
}
if (api.enableAPIdebug || debugMode) {
console.error(theError)
}

try {
const data = fs.readFileSync("./openticketdebug.txt")
const newData = data ? data.toString() : ""
fs.writeFileSync("./openticketdebug.txt", newData + "\nPLUGIN "+file+" ERROR: " + theError.name + ": " + theError.message + "\n" + theError.stack + "\n\n")
} catch {
fs.writeFileSync("./openticketdebug.txt", "\nPLUGIN "+file+" ERROR: " + theError.name + ": " + theError.message + "\n" + theError.stack + "\n\n")
}

failcount++
totalcount++
}
}
})

require("../startscreen").headerDataPlugins({total:totalcount,success:successcount,error:failcount})
require("../startscreen").headerDataPlugins({ total: totalcount, success: successcount, error: failcount })
}
2 changes: 1 addition & 1 deletion core/checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ exports.checker = async () => {
checkType(config.languageFile,"string","languagefile")
const lf = config.languageFile

if (!lf.startsWith("custom") && !lf.startsWith("english") && !lf.startsWith("dutch") && !lf.startsWith("romanian") && !lf.startsWith("german") && !lf.startsWith("arabic") && !lf.startsWith("spanish") && !lf.startsWith("portuguese") && !lf.startsWith("french") && !lf.startsWith("italian") && !lf.startsWith("czech") && !lf.startsWith("danish") && !lf.startsWith("russian") && !lf.startsWith("turkish") && !lf.startsWith("polish") && !lf.startsWith("slovenian") && !lf.startsWith("thai") && !lf.startsWith("norwegian") && !lf.startsWith("greek") && !lf.startsWith("ukrainian")){
if (!lf.startsWith("custom") && !lf.startsWith("english") && !lf.startsWith("dutch") && !lf.startsWith("romanian") && !lf.startsWith("german") && !lf.startsWith("arabic") && !lf.startsWith("spanish") && !lf.startsWith("portuguese") && !lf.startsWith("french") && !lf.startsWith("italian") && !lf.startsWith("czech") && !lf.startsWith("danish") && !lf.startsWith("russian") && !lf.startsWith("turkish") && !lf.startsWith("polish") && !lf.startsWith("slovenian") && !lf.startsWith("thai") && !lf.startsWith("norwegian") && !lf.startsWith("greek") && !lf.startsWith("ukrainian") && !lf.startsWith("hungarian")){
createError("'languagefile' | invalid language, more info in the wiki")
}

Expand Down
2 changes: 1 addition & 1 deletion core/utils/liveStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ exports.liveStatusUploadManager = async (err) => {
//system:config.system
},
language:config.languageFile,
version:"3.4.1",
version:"3.4.2",
slashcmds:slashMode,
transcripts:transcriptMode,
plugins:fs.readdirSync("./plugins"),
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.4.1 - © DJdj Development
Open Ticket v3.4.2 - © DJdj Development
discord: https://discord.dj-dj.be
website: https://www.dj-dj.be
Expand Down
2 changes: 1 addition & 1 deletion language/arabic.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"ChilledBroke#9986 & M4#5882",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors": {
"missingArgsTitle": "قيمة غير صالحة!",
Expand Down
2 changes: 1 addition & 1 deletion language/custom.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"DJdj Development",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Invalid Arguments!",
Expand Down
2 changes: 1 addition & 1 deletion language/czech.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"t0miiis#3022",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Neplatny Argument!",
Expand Down
2 changes: 1 addition & 1 deletion language/danish.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"the_gamer#5095",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors": {
"missingArgsTitle": "Ugyldigt Argument!",
Expand Down
2 changes: 1 addition & 1 deletion language/dutch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"DJj123dj#1706",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Onjuiste parameters!",
Expand Down
2 changes: 1 addition & 1 deletion language/english.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"DJdj Development",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Invalid Arguments!",
Expand Down
2 changes: 1 addition & 1 deletion language/french.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Sanke#6086",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Arguments invalides!",
Expand Down
2 changes: 1 addition & 1 deletion language/german.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"david.#8276 ",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Ungültiges Argument!",
Expand Down
2 changes: 1 addition & 1 deletion language/greek.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"ꙅoᴎɒᎸɘƚꙅ#3744",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Invalid Arguments!",
Expand Down
101 changes: 101 additions & 0 deletions language/hungarian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"_CREDITS":"Snowy",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Hibás paraméterek!",
"missingArgsDescription":"Hiányzó paraméterek",
"noPermsTitle":"Nincs jogosultságod!",
"noPermsDescription":"Szükséged van az `Adminisztrátor` jogra, vagy rajta kell lenned az engedélyezett rangok listáján!",
"noPermsDelete":"Csak adminok törölhetik a ticketet!",
"chooseFromListTitle":"Ismeretlen ID",
"chooseFromListDescription":"Válassz egy ID-t az alábbi listából:",
"boterror":"Bot Hiba!",
"notInTicketTitle":"Nem vagy egy ticketben!",
"notInTicketDescription":"Ez a parancs nem működik a ticketeken kívűl!",
"ticketDoesntExist":"Ez a ticket már nem létezik!",
"roleDoesntExist":"Ez a rang már nem létezik!",
"anotherOption":"Ez a választás nem egy ticket, hanem más!",
"maxAmountTitle":"Maximum limit elérve!",
"maxAmountDescription":"Elérted a maximum engedélyezett ticketek számát!\nSzóval nem tudsz újat csinálni!",
"somethingWentWrong":"**Valami balul sült el!**\nKérlek próbáld újra később!"
},
"commands":{
"userAddedTitle":"{0} hozzáadva a tickethez!",
"userRemovedTitle":"{0} elvéve a ticketből!",
"renameTitle":"Ticket neve megváltoztatva erre: {0}!",
"closeTitle":"Ticket bezárva!",
"deleteTitle":"Ticket törlése...",
"reopenTitle":"Ticket újranyitva!",

"claimTitle":"A ticketet igényelte: {0}",
"unclaimTitle":"Már senki nem ingényeli a ticketet!",
"changeTitle":"Ticket típus megváltoztatva erre: {0}!",

"statsTitle":"Ticket statisztikák erre: {0}!",
"autocloseTitle":"Ez a ticket automatikusan be lesz zárva ennyi idő múlva: {0}!",
"autocloseRejectTitle":"Ez a ticket nem lesz automatikusan bezárva!",
"autocloseWarn":"Ez csak az inaktív hibajegyeket érinti!",

"goToTicket":"A tickethez",
"ticketWarning":"Az embed az alábbi üzenetben van!",
"maxTicketWarning":"**Warning:** _Csak {0} ticketet készíthetsz egy időben!_"
},
"helpMenu":{
"title":"Elérhető parancsok:",
"header1":"**Hogy elkészíts egy ticketet, menj ide: {0}!**\n\n",
"header2":"**Futtasd a `/new` vagy `/ticket` parancsot a ticket készítéséhez!**\n\n",

"msgCmd":"Embed küldése gombokkal. (csak adminok)",
"renameCmd":"Ticket átnevezése. (szóköz nélkül)",
"closeCmd":"Ticket bezárása.",
"deleteCmd":"Ticket törlése.",
"addCmd":"Felhasználó hozzáadása a tickethez.",
"removeCmd":"Felhasználó elvétele a tickettől.",
"reopenCmd":"Ticket újranyitása miután már be lett zárva.",
"changeCmd":"Ticket típusának megváltoztatása.",
"claimCmd":"Ticket igénylése.",
"unclaimCmd":"Ticket igénylésének törlése.",
"statsCmd":"Ticket statisztikák megtekintése.",
"autocloseCmd":"Ticketek automatikus bezárási idejének beállítása"
},
"buttons":{
"close":"Ticket bezárása",
"delete":"Ticket törlése",
"reopen":"Ticket újranyitása",
"closeWithReason":"Bezárás indokkal"
},
"messages":{
"closedDescription":"Csak adminok tudnak ebben a ticketben beszélni!\n\n*Kattints az alábbi gombokkal hogy töröld vagy újranyisd a ticketet!*",
"createdTitle":"Ticket Elkészítve!",
"createdDescription":"A ticketet elkészítve, meg tudod találni egy pingel!",

"newTicketDmTitle":"Új ticket!",
"closedTicketDmTitle":"Ticket bezárva!",
"deletedTicketDmTitle":"Ticket törölve!",
"closedTicketDmDescription":"A ticketed bezárták!",
"deletedTicketDmDescription":"A ticketed törölték!",
"reopenTicketDmTitle":"Ticket újranyitva!",
"reopenTicketDmDescription":"A ticketed újranyitották!",

"chooseCategory":"válassz egy kategóriát:",
"gettingdeleted":"A ticket törölve lesz...",

"none":"nincs",
"reason":"indok",
"createdat":"elkészítve ekkor:",
"openedby":"nyitotta:",
"deletedby":"törölve általa:",
"closedby":"bezárva általa:",

"modalreason":"Mi az indokod a ticket bezárására?",
"chooseATicket": "Válassz egy ticketet"
},
"transcripts":{
"title":"Átirat",
"processed":"Ez az átirat jelenleg feldolgozás alatt van",
"wait":"Kérlek várj!",
"estimated":"Becsült idő",
"available":"Az átirat itt érhető el"
}
}
2 changes: 1 addition & 1 deletion language/italian.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Maurizio#0268",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Argomenti non validi!",
Expand Down
2 changes: 1 addition & 1 deletion language/norwegian.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"NoOneNook#0266",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Ugyldige argumenter!",
Expand Down
2 changes: 1 addition & 1 deletion language/polish.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"MKevas#8311",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Nieprawidłowe argumenty!",
Expand Down
2 changes: 1 addition & 1 deletion language/portuguese.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"QuirAddon#9778",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Argumentos inválidos!",
Expand Down
2 changes: 1 addition & 1 deletion language/romanian.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Sanke#6086",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Argumente Invalide",
Expand Down
2 changes: 1 addition & 1 deletion language/russian.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Apexo#0723",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Неверные аргументы!",
Expand Down
2 changes: 1 addition & 1 deletion language/slovenian.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"n1kkec#5341",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Napačen argument!",
Expand Down
2 changes: 1 addition & 1 deletion language/spanish.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Redactado#1673 & josuens14#5267",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"¡Argumentos inválidos!",
Expand Down
2 changes: 1 addition & 1 deletion language/thai.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Mods HD#0661",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"อาร์กิวเมนต์ไม่ถูกต้อง!",
Expand Down
2 changes: 1 addition & 1 deletion language/turkish.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Hydrâelčhâvø#1575",
"_INFO":"This file is a translation for open ticket 3.4.1",
"_INFO":"This file is a translation for open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Geçersiz argümanlar!",
Expand Down
2 changes: 1 addition & 1 deletion language/ukrainian.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_CREDITS":"Anderskiy#4093",
"_INFO":"Цей файл є перекладом для open ticket 3.4.1",
"_INFO":"Цей файл є перекладом для open ticket 3.4.2",

"errors":{
"missingArgsTitle":"Невірні аргументи!",
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.4.1",
"version": "3.4.2",
"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 1bb7074

Please sign in to comment.