Skip to content

Commit

Permalink
Open Ticket v3.5.1!
Browse files Browse the repository at this point in the history
Open Ticket v3.5.1!
  • Loading branch information
DJj123dj authored Dec 25, 2023
2 parents 5231129 + 07e2a68 commit e3b99e6
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 151 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ Take a look at all the features and discover the possibilities!
|-------------------|--------------------------|--------------------------------|
|English |djj123dj |🟢 Up To Date |
|Dutch |djj123dj |🟢 Up To Date |
|French |sankedev |🟠 Will be updated next version |
|French |sankedev |🟢 Up To Date |
|Romanian |sankedev |🟢 Up To Date |
|Spanish |redactado & josuens |🟠 Will be updated next version |
|Spanish |redactado & josuens |🟢 Up To Date |
|German |david.3 |🟢 Up To Date |
|Italian |maurizio26 |🟠 Will be updated next version |
|Italian |maurizio26 |🟢 Up To Date |
|Czech |spyeye_ |🟢 Up To Date |
|Arabic |Sarcastic#9318 |🔴 Outdated |
|Danish |.the_gamer |🟢 Up To Date |
|Portuguese |quiradon |🟠 Will be updated next version |
|Portuguese |quiradon |🔴 Outdated |
|Russian |apexo & ander |🟢 Up To Date |
|Ukrainian |ander |🟢 Up To Date |
|Turkish |Hydra#0009 |🔴 Outdated |
|Polish |mkevas |🟠 Will be updated next version |
|Polish |mkevas |🟢 Up To Date |
|Slovenian |n1kkec |🔴 Outdated |
|Thai |modshd |🟢 Up To Date |
|Norwegian |noonenook |🟠 Will be updated next version |
|Norwegian |noonenook |🟢 Up To Date |
|Greek |stefanos__. |🔴 Outdated |

## links
Expand Down
32 changes: 18 additions & 14 deletions core/utils/getButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,26 @@ const discord = require("discord.js")
const bot = require("../../index")
const config = bot.config
const l = bot.language
const b = discord.ButtonStyle

/**@returns {"DANGER"|"SUCCESS"|"PRIMARY"|"SECONDARY"} */
/**
* @param {String} color
* @returns {"DANGER"|"SUCCESS"|"PRIMARY"|"SECONDARY"} */
const getColor = (color) => {
const b = discord.ButtonStyle
if (color.toLowerCase() == "red"){
return b.Danger
}else if (color.toLowerCase() == "green"){
return b.Success
}else if (color.toLowerCase() == "blue" || color.toLowerCase() == "blurple"){
return b.Primary
}else if (color.toLowerCase() == "black" || color.toLowerCase() == "gray" || color.toLowerCase() == "grey"){
return b.Secondary
}else if (color == "DANGER" || color == "SECONDARY" || color == "SUCCESS" || color == "PRIMARY"){
return color
}else if (color.toLowerCase() == "none" || color.toLowerCase() == "false" || color.toLowerCase() == ""){
return b.Secondary
if (color){
if (color.toLowerCase() == "red"){
return b.Danger
}else if (color.toLowerCase() == "green"){
return b.Success
}else if (color.toLowerCase() == "blue" || color.toLowerCase() == "blurple"){
return b.Primary
}else if (color.toLowerCase() == "black" || color.toLowerCase() == "gray" || color.toLowerCase() == "grey"){
return b.Secondary
}else if (color.toUpperCase() == "DANGER" || color.toUpperCase() == "SECONDARY" || color.toUpperCase() == "SUCCESS" || color.toUpperCase() == "PRIMARY"){
return color
}else if (color.toLowerCase() == "none" || color.toLowerCase() == "false" || color.toLowerCase() == ""){
return b.Secondary
}else return b.Secondary
}else return b.Secondary
}

Expand Down
48 changes: 24 additions & 24 deletions language/french.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,37 +99,37 @@
"available":"La transcript est disponible ici"
},
"stats":{
"globalTitle":"Global Stats",
"ticketTitle":"Ticket Stats for {0}",
"userTitle":"User Stats for {0}",
"systemTitle":"System Stats",
"versionTitle":"Bot Version",
"globalTitle":"Statistiques mondiales",
"ticketTitle":"Statistiques des tickets pour {0}",
"userTitle":"Statistiques utilisateur pour {0}",
"systemTitle":"Statistiques du système",
"versionTitle":"Version du bot",

"ticketsCreated":"Tickets Created",
"ticketsClosed":"Tickets Closed",
"ticketsDeleted":"Tickets Deleted",
"ticketsReopened":"Tickets Reopened",
"ticketsAutoclosed":"Tickets Autoclosed",
"transcriptsCreated":"Transcripts Created",
"startupDate":"Startup Date",
"latestUpdate":"Latest Update",
"ticketCreatedOn":"Ticket Created On",
"ticketCreatedBy":"Ticket Created By",
"messagesSent":"Messages Sent",
"ticketsCreated":"Tickets créés",
"ticketsClosed":"Tickets fermés",
"ticketsDeleted":"Tickets supprimés",
"ticketsReopened":"Tickets rouverts",
"ticketsAutoclosed":"Tickets fermés automatiquement",
"transcriptsCreated":"Transcriptions créées",
"startupDate":"Date de démarrage du bot",
"latestUpdate":"Dernière mise à jour",
"ticketCreatedOn":"Ticket créé le",
"ticketCreatedBy":"Ticket créé par",
"messagesSent":"Messages envoyés",
"status":"Status",
"participants":"Participants",
"role":"Role",

"switches":{
"globalAdmin":"Global Admin",
"ticketAdmin":"Ticket Admin",
"member":"Member",
"open":"Open",
"reopened":"Reopened",
"closed":"Closed",
"autoclosed":"Autoclosed"
"globalAdmin":"Administrateur global",
"ticketAdmin":"Administrateur des Tickets",
"member":"Membre",
"open":"Ouvrir",
"reopened":"Rouvert",
"closed":"Fermée",
"autoclosed":"fermeture automatique"
},

"errorUserNotFound":"This user can't be found in the stats database!"
"errorUserNotFound":"Cet utilisateur est introuvable dans la base de données de statistiques!"
}
}
50 changes: 25 additions & 25 deletions language/indonesian.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,37 +99,37 @@
"available":"Transkrip tersedia di sini"
},
"stats":{
"globalTitle":"Global Stats",
"ticketTitle":"Ticket Stats for {0}",
"userTitle":"User Stats for {0}",
"systemTitle":"System Stats",
"versionTitle":"Bot Version",
"globalTitle":"Statistik Global",
"ticketTitle":"Status Tiket Untuk {0}",
"userTitle":"Status Pengguna Untuk {0}",
"systemTitle":"Status Sistem",
"versionTitle":"Versi Robot",

"ticketsCreated":"Tickets Created",
"ticketsClosed":"Tickets Closed",
"ticketsDeleted":"Tickets Deleted",
"ticketsReopened":"Tickets Reopened",
"ticketsAutoclosed":"Tickets Autoclosed",
"transcriptsCreated":"Transcripts Created",
"startupDate":"Startup Date",
"latestUpdate":"Latest Update",
"ticketCreatedOn":"Ticket Created On",
"ticketCreatedBy":"Ticket Created By",
"messagesSent":"Messages Sent",
"ticketsCreated":"Tiket Dibuat",
"ticketsClosed":"Tiket Ditutup",
"ticketsDeleted":"Tiket Dihapus",
"ticketsReopened":"Tiket Dibuka Kembali",
"ticketsAutoclosed":"Tiket Ditutup Otomatis",
"transcriptsCreated":"Transkrip Dibuat",
"startupDate":"Tanggal Mulai",
"latestUpdate":"Pembaruan Terbaru",
"ticketCreatedOn":"Tiket Dibuat Pada",
"ticketCreatedBy":"Tiket Dibuat Oleh",
"messagesSent":"Pesan Terkirim",
"status":"Status",
"participants":"Participants",
"role":"Role",
"participants":"Partisipan",
"role":"Peran",

"switches":{
"globalAdmin":"Global Admin",
"globalAdmin":"Admin Global",
"ticketAdmin":"Ticket Admin",
"member":"Member",
"open":"Open",
"reopened":"Reopened",
"closed":"Closed",
"autoclosed":"Autoclosed"
"member":"Anggota",
"open":"Buka",
"reopened":"Dibuka kembali",
"closed":"Ditutup",
"autoclosed":"Ditutup Otomatis"
},

"errorUserNotFound":"This user can't be found in the stats database!"
"errorUserNotFound":"Pengguna ini tidak dapat ditemukan dalam basis data statistik!"
}
}
58 changes: 29 additions & 29 deletions language/italian.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,38 +98,38 @@
"estimated":"Tempo estimato",
"available":"La trascrizione è disponibile qui"
},
"stats":{
"globalTitle":"Global Stats",
"ticketTitle":"Ticket Stats for {0}",
"userTitle":"User Stats for {0}",
"systemTitle":"System Stats",
"versionTitle":"Bot Version",
"stats": {
"globalTitle": "Statistiche Globali",
"ticketTitle": "Statistiche Ticket per {0}",
"userTitle": "Statistiche Utenti per {0}",
"systemTitle": "Sistema Statistiche",
"versionTitle": "Versione Bot",

"ticketsCreated":"Tickets Created",
"ticketsClosed":"Tickets Closed",
"ticketsDeleted":"Tickets Deleted",
"ticketsReopened":"Tickets Reopened",
"ticketsAutoclosed":"Tickets Autoclosed",
"transcriptsCreated":"Transcripts Created",
"startupDate":"Startup Date",
"latestUpdate":"Latest Update",
"ticketCreatedOn":"Ticket Created On",
"ticketCreatedBy":"Ticket Created By",
"messagesSent":"Messages Sent",
"status":"Status",
"participants":"Participants",
"role":"Role",
"ticketsCreated": "Tickets Creato",
"ticketsClosed": "Tickets Chiuso",
"ticketsDeleted": "Tickets Eliminato",
"ticketsReopened": "Tickets Riaperto",
"ticketsAutoclosed": "Tickets Chiuso Automaticamente",
"transcriptsCreated": "Transcrizione Creata",
"startupDate": "Data Inizio",
"latestUpdate": "Ultimo Update",
"ticketCreatedOn": "Ticket Creato Su",
"ticketCreatedBy": "Ticket Creato Da",
"messagesSent": "Messaggi Inviati",
"status": "Stato",
"participants": "Partecipanti",
"role": "Ruolo",

"switches":{
"globalAdmin":"Global Admin",
"ticketAdmin":"Ticket Admin",
"member":"Member",
"open":"Open",
"reopened":"Reopened",
"closed":"Closed",
"autoclosed":"Autoclosed"
"switches": {
"globalAdmin": "Amministratore Globale",
"ticketAdmin": "Amministratore Ticket",
"member": "Membro",
"open": "Aperto",
"reopened": "Riaperto",
"closed": "Chiuso",
"autoclosed": "Chiuso Automaticamente"
},

"errorUserNotFound":"This user can't be found in the stats database!"
"errorUserNotFound": "Questo utente non può essere trovato nel database delle statistiche!"
}
}
52 changes: 26 additions & 26 deletions language/polish.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,37 +99,37 @@
"available":"Transkrypcja jest dostępna tutaj"
},
"stats":{
"globalTitle":"Global Stats",
"ticketTitle":"Ticket Stats for {0}",
"userTitle":"User Stats for {0}",
"systemTitle":"System Stats",
"versionTitle":"Bot Version",
"globalTitle":"Globalne Statystyki",
"ticketTitle":"Statystyki biletów dla {0}",
"userTitle":"Statystyki użytkowników dla {0}",
"systemTitle":"Statystyki systemu",
"versionTitle":"Wersja bota",

"ticketsCreated":"Tickets Created",
"ticketsClosed":"Tickets Closed",
"ticketsDeleted":"Tickets Deleted",
"ticketsReopened":"Tickets Reopened",
"ticketsAutoclosed":"Tickets Autoclosed",
"transcriptsCreated":"Transcripts Created",
"startupDate":"Startup Date",
"latestUpdate":"Latest Update",
"ticketCreatedOn":"Ticket Created On",
"ticketCreatedBy":"Ticket Created By",
"messagesSent":"Messages Sent",
"ticketsCreated":"Bilety stworzone",
"ticketsClosed":"Bilety zamknięte",
"ticketsDeleted":"Bilety skasowane",
"ticketsReopened":"Bilety otwarte ponownie",
"ticketsAutoclosed":"Bilety automatycznie zamknięte",
"transcriptsCreated":"Utworzono transkrypcje",
"startupDate":"Data uruchomienia",
"latestUpdate":"Najnowsza aktualizacja",
"ticketCreatedOn":"Bilet został utworzony dnia",
"ticketCreatedBy":"Bilet stworzony przez",
"messagesSent":"Wiadomość wysłana",
"status":"Status",
"participants":"Participants",
"role":"Role",
"participants":"Uczestnicy",
"role":"Rola",

"switches":{
"globalAdmin":"Global Admin",
"ticketAdmin":"Ticket Admin",
"member":"Member",
"open":"Open",
"reopened":"Reopened",
"closed":"Closed",
"autoclosed":"Autoclosed"
"globalAdmin":"Globalny administrator",
"ticketAdmin":"Admin biletowy",
"member":"Użytkownik",
"open":"Otwarte",
"reopened":"Otwarte ponownie",
"closed":"Zamknięte",
"autoclosed":"Automatycznie zamknięte"
},

"errorUserNotFound":"This user can't be found in the stats database!"
"errorUserNotFound":"Tego użytkownika nie można znaleźć w bazie statystyk!"
}
}
54 changes: 27 additions & 27 deletions language/spanish.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,37 +99,37 @@
"available":"La transcripción estará disponible aquí"
},
"stats":{
"globalTitle":"Global Stats",
"ticketTitle":"Ticket Stats for {0}",
"userTitle":"User Stats for {0}",
"systemTitle":"System Stats",
"versionTitle":"Bot Version",
"globalTitle":"Estadísticas Globales",
"ticketTitle":"Estadísitcas para el ticket {0}",
"userTitle":"Estadísticas para el usuario {0}",
"systemTitle":"Estadísticas del sistema",
"versionTitle":"Versión del bot",

"ticketsCreated":"Tickets Created",
"ticketsClosed":"Tickets Closed",
"ticketsDeleted":"Tickets Deleted",
"ticketsReopened":"Tickets Reopened",
"ticketsAutoclosed":"Tickets Autoclosed",
"transcriptsCreated":"Transcripts Created",
"startupDate":"Startup Date",
"latestUpdate":"Latest Update",
"ticketCreatedOn":"Ticket Created On",
"ticketCreatedBy":"Ticket Created By",
"messagesSent":"Messages Sent",
"status":"Status",
"participants":"Participants",
"role":"Role",
"ticketsCreated":"Tickets Creados",
"ticketsClosed":"Tickets Cerrados",
"ticketsDeleted":"Tickets Eliminados",
"ticketsReopened":"Tickets Reabiertos",
"ticketsAutoclosed":"Tickets Cerrados automáticamente",
"transcriptsCreated":"Transcripciones Creadas",
"startupDate":"Fecha de Inicio",
"latestUpdate":"Última Actualización",
"ticketCreatedOn":"Ticket creado el",
"ticketCreatedBy":"Ticket creado por",
"messagesSent":"Mensajes enviados",
"status":"Estado",
"participants":"Participantes",
"role":"Rol",

"switches":{
"globalAdmin":"Global Admin",
"ticketAdmin":"Ticket Admin",
"member":"Member",
"open":"Open",
"reopened":"Reopened",
"closed":"Closed",
"autoclosed":"Autoclosed"
"globalAdmin":"Admin Global",
"ticketAdmin":"Admin del Ticket",
"member":"Miembro",
"open":"Abierto",
"reopened":"Reabierto",
"closed":"Cerrado",
"autoclosed":"Cerrado automáticamente"
},

"errorUserNotFound":"This user can't be found in the stats database!"
"errorUserNotFound":"¡Este usuario no pudo ser encontrado en la base de datos de estadísitcas!"
}
}

0 comments on commit e3b99e6

Please sign in to comment.