From d35b7fca992efd475d29fea87e351814638e359b Mon Sep 17 00:00:00 2001
From: NoOneNook <84632461+NoOneNook@users.noreply.github.com>
Date: Tue, 25 Mar 2025 21:49:40 +0100
Subject: [PATCH 01/31] Add files via upload
Norwegian and Swedish translation complete
---
languages/README.md | 225 ++++++++++++++++++
languages/norwegian.json | 478 +++++++++++++++++++++++++++++++++++++++
languages/swedish.json | 478 +++++++++++++++++++++++++++++++++++++++
3 files changed, 1181 insertions(+)
create mode 100644 languages/README.md
create mode 100644 languages/norwegian.json
create mode 100644 languages/swedish.json
diff --git a/languages/README.md b/languages/README.md
new file mode 100644
index 0000000..12158c0
--- /dev/null
+++ b/languages/README.md
@@ -0,0 +1,225 @@
+> ### 🎥 Content Creators 🎥
+> Hey there! We're searching for content creators that would want to create a tutorial or setup guide for Open Ticket!
+> [📌 More Information](.github/CONTENT_CREATORS.md)
+---
+
+
+Open Ticket is the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions/Modals, Stats & more!
+You're also able to customise every little aspect of the bot! From embeds to transcripts. Open Ticket is also translated in more than 22 Languages! If you need any help, feel free to join our discord server!
+
⭐️ Help us grow by giving a star! ⭐️
+ +### 📌 Features +- **🦇 pterodactyl support** - Open Ticket works perfect on Pterodactyl based panels! [(Download official eggs)](.eggs/README.md) +- **💩 no bloat** - Your Open Ticket bot doesn't contain any form of bloat or credits! +- **🔒 tested & secure** - Open Ticket has been tested by thousands of servers and is very secure! +- **📈 scalable** - Open Ticket is made to handle huge servers! (Already tested in **servers with 100k members**) +- **📄 HTML transcripts** - Make use of the most customisable, beautiful and easy-to-use HTML Transcripts! +- **✅ ticket actions** - Close, Reopen, Delete, Rename & Move all your tickets! +- **🇬🇧 translation** - Open Ticket has been translated in more than **22 languages** by our community! +- **🎨 customisation** - Open Ticket has been created around customisation, everything can be customised! +- **🖥️ interactions** - The bot has full support for Buttons, Dropdowns, Slash Commands and Modals! +- **∞ unlimited** - Create an infinite amount of tickets & panels! +- **📝 advanced plugins** - Create advanced plugins or use pre-made ones by our community! +- **👥 user management** - Add & Remove users from all tickets! +- **📊 detailed stats** - Open Ticket has ticket, user & global staticstics available for everyone! +- **🚫 blacklist** - Blacklist users to prevent them from creating a ticket! +- **❓ questions** - Let users answer questions in a modal before the ticket is created! +- **📦 slash & text** - Open Ticket supports both slash & text commands! +- **📥 extra buttons** - The bot also supports Reaction Roles & Url Buttons, because why not ¯\\_(ツ)_/¯ +- **✨ commands** - The bot contains more than 25 commands! + +#### And more using plugins! + - **💬 reviews** - Create & customise your own review system! + - **📢 feedback** - Collect feedback & create forms for people to answer! + - **🏷️ tags** - Create tags & answer questions automatically using keywords! + - **📝 forms** - Create advanced forms and ask people for additional details! + - **🔄 rotating status** - Create a rotating bot status & use dynamic variables from the bot! + - **💾 sqlite database** - Use an `sqlite` database for increased performances! + - **🎉 custom embeds** - Create your own embeds and use them in your server! + - **⏰ reminders** - Create & manage customisable reminders in your server! + - **🎨 customisation** - Yep, you heard it right! Even more customisation! + - **😁 And so much more...** + +> ### 📦 Resources +> Resources might not be accurate yet! *(because v4 is still in beta)*
+>
+>
+
+### ❤️ Sponsors
+A big thanks to all our sponsors! Without them, it wouldn't be possible to create this project!
+
+![]() |
+![]() |
+
| roppl3r | +BENZORICH | +
|---|
+
+
+
+
+### ⏱️ Quick Setup
+> 1. Download the latest version of Open Ticket on [Github](https://github.com/open-discord-bots/open-ticket).
+> 2. Make sure node.js & npm are installed using `node -v` (minimum `v18`).
+> 3. Install any required dependencies using `npm install`.
+> 4. Configure the bot in the `./config/` directory.
+> 5. Start the bot using `npm start` or `node index.js`
+> - The bot will let you know any existing config errors.
+> - Fix these errors and restart the bot.
+> 6. Enjoy using Open Ticket!
+> ### [📔 Visit Documentation](https://otdocs.dj-dj.be)
+
+## 📸 Preview
+
+
+
+
+
+## 🧩 Plugins
+**Download all plugins in our [Official Plugin Repository](https://github.com/open-discord-bots/plugins)!**![]() |
+![]() |
+![]() |
+
| 💻 DJj123dj | +💬 Sanke | +💬 DevBack | +
|---|
+
+**README.md**
-Open Ticket is the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions/Modals, Stats & more!
-You're also able to customise every little aspect of the bot! From embeds to transcripts. Open Ticket is also translated in more than 22 Languages! If you need any help, feel free to join our discord server!
-
⭐️ Help us grow by giving a star! ⭐️
- -### 📌 Features -- **🦇 pterodactyl support** - Open Ticket works perfect on Pterodactyl based panels! [(Download official eggs)](.eggs/README.md) -- **💩 no bloat** - Your Open Ticket bot doesn't contain any form of bloat or credits! -- **🔒 tested & secure** - Open Ticket has been tested by thousands of servers and is very secure! -- **📈 scalable** - Open Ticket is made to handle huge servers! (Already tested in **servers with 100k members**) -- **📄 HTML transcripts** - Make use of the most customisable, beautiful and easy-to-use HTML Transcripts! -- **✅ ticket actions** - Close, Reopen, Delete, Rename & Move all your tickets! -- **🇬🇧 translation** - Open Ticket has been translated in more than **22 languages** by our community! -- **🎨 customisation** - Open Ticket has been created around customisation, everything can be customised! -- **🖥️ interactions** - The bot has full support for Buttons, Dropdowns, Slash Commands and Modals! -- **∞ unlimited** - Create an infinite amount of tickets & panels! -- **📝 advanced plugins** - Create advanced plugins or use pre-made ones by our community! -- **👥 user management** - Add & Remove users from all tickets! -- **📊 detailed stats** - Open Ticket has ticket, user & global staticstics available for everyone! -- **🚫 blacklist** - Blacklist users to prevent them from creating a ticket! -- **❓ questions** - Let users answer questions in a modal before the ticket is created! -- **📦 slash & text** - Open Ticket supports both slash & text commands! -- **📥 extra buttons** - The bot also supports Reaction Roles & Url Buttons, because why not ¯\\_(ツ)_/¯ -- **✨ commands** - The bot contains more than 25 commands! - -#### And more using plugins! - - **💬 reviews** - Create & customise your own review system! - - **📢 feedback** - Collect feedback & create forms for people to answer! - - **🏷️ tags** - Create tags & answer questions automatically using keywords! - - **📝 forms** - Create advanced forms and ask people for additional details! - - **🔄 rotating status** - Create a rotating bot status & use dynamic variables from the bot! - - **💾 sqlite database** - Use an `sqlite` database for increased performances! - - **🎉 custom embeds** - Create your own embeds and use them in your server! - - **⏰ reminders** - Create & manage customisable reminders in your server! - - **🎨 customisation** - Yep, you heard it right! Even more customisation! - - **😁 And so much more...** - -> ### 📦 Resources -> Resources might not be accurate yet! *(because v4 is still in beta)*
->
->
-
-### ❤️ Sponsors
-A big thanks to all our sponsors! Without them, it wouldn't be possible to create this project!
-
-![]() |
-![]() |
-
| roppl3r | -BENZORICH | -
|---|
-
-
-
-
-### ⏱️ Quick Setup
-> 1. Download the latest version of Open Ticket on [Github](https://github.com/open-discord-bots/open-ticket).
-> 2. Make sure node.js & npm are installed using `node -v` (minimum `v18`).
-> 3. Install any required dependencies using `npm install`.
-> 4. Configure the bot in the `./config/` directory.
-> 5. Start the bot using `npm start` or `node index.js`
-> - The bot will let you know any existing config errors.
-> - Fix these errors and restart the bot.
-> 6. Enjoy using Open Ticket!
-> ### [📔 Visit Documentation](https://otdocs.dj-dj.be)
-
-## 📸 Preview
-
-
-
-
-
-## 🧩 Plugins
-**Download all plugins in our [Official Plugin Repository](https://github.com/open-discord-bots/plugins)!**![]() |
-![]() |
-![]() |
-
| 💻 DJj123dj | -💬 Sanke | -💬 DevBack | -
|---|
-
-**README.md**
Open Ticket is the most advanced & customisable discord ticket bot that you will ever find! You can customise up to 300+ variables! This includes Html Transcripts, Advanced Plugins, Custom Embeds, Questions/Modals, Stats & more!
-You're also able to customise every little aspect of the bot! From embeds to transcripts. Open Ticket is also translated in more than 22 Languages! If you need any help, feel free to join our discord server!
+You're also able to customise every little aspect of the bot! From embeds to transcripts. Open Ticket is also translated in more than 26 Languages! If you need any help, feel free to join our discord server!
⭐️ Help us grow by giving a star! ⭐️
@@ -29,7 +29,7 @@ You're also able to customise every little aspect of the bot! From embeds to tra - **📈 scalable** - Open Ticket is made to handle huge servers! (Already tested in **servers with 100k members**) - **📄 HTML transcripts** - Make use of the most customisable, beautiful and easy-to-use HTML Transcripts! - **✅ ticket actions** - Close, Reopen, Delete, Rename & Move all your tickets! -- **🇬🇧 translation** - Open Ticket has been translated in more than **22 languages** by our community! +- **🇬🇧 translation** - Open Ticket has been translated in more than **26 languages** by our community! - **🎨 customisation** - Open Ticket has been created around customisation, everything can be customised! - **🖥️ interactions** - The bot has full support for Buttons, Dropdowns, Slash Commands and Modals! - **∞ unlimited** - Create an infinite amount of tickets & panels! @@ -189,16 +189,16 @@ This is the main team working on Open Ticket. Don't forget to check their profil |🇮🇳 Hindi |an_developer |🟢 Up To Date | |🇱🇹 Lithuanian |tsgindrius |🟢 Up To Date | |🇵🇱 Polish |danoglez |🟢 Up To Date | -|🇪🇪 Estonian |iamnotmega |🔵 Up To Date (ChatGPT) | -|🇫🇮 Finnish |iamnotmega |🔵 Up To Date (ChatGPT) | -|🇷🇺 Russian |NoOneNook |🔵 Up To Date (AI) | |🇳🇴 Norwegian |NoOneNook |🟢 Up To Date | +|🇸🇪 Swedish |NoOneNook |🟢 Up To Date | +|🇪🇪 Estonian |iamnotmega |🔵 Up To Date (AI) | +|🇫🇮 Finnish |iamnotmega |🔵 Up To Date (AI) | +|🇷🇺 Russian |NoOneNook |🔵 Up To Date (AI) | |🇱🇻 Latvian |NoOneNook |🔵 Up To Date (AI) | |🇯🇵 Japanese |/ |🔴 Missing | |🇰🇷 Korean |/ |🔴 Missing | |🇨🇳 Simplified Chinese |/ |🔴 Missing | |🇨🇳 Traditional Chinese|/ |🔴 Missing | -|🇸🇪 Swedish |NoOneNook |🟢 Up To Date | |🇻🇳 Vietnamese |/ |🔴 Missing | |🇸🇮 Slovenian |/ |🔴 Missing | |🇬🇷 Greek |/ |🔴 Missing | diff --git a/src/core/api/defaults/language.ts b/src/core/api/defaults/language.ts index 49c4771..57c3be7 100644 --- a/src/core/api/defaults/language.ts +++ b/src/core/api/defaults/language.ts @@ -467,6 +467,10 @@ export interface ODLanguageManagerIds_Default { "opendiscord:hindi":ODLanguage, "opendiscord:lithuanian":ODLanguage, "opendiscord:polish":ODLanguage, + "opendiscord:latvian":ODLanguage, + "opendiscord:norwegian":ODLanguage, + "opendiscord:russian":ODLanguage, + "opendiscord:swedish":ODLanguage, //ADD NEW LANGUAGES HERE!!! } diff --git a/src/data/framework/languageLoader.ts b/src/data/framework/languageLoader.ts index ab200be..73d012f 100644 --- a/src/data/framework/languageLoader.ts +++ b/src/data/framework/languageLoader.ts @@ -25,6 +25,10 @@ export const loadAllLanguages = async () => { opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:hindi","hindi.json")) opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:lithuanian","lithuanian.json")) opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:polish","polish.json")) + opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:latvian","latvian.json")) + opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:norwegian","norwegian.json")) + opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:russian","russian.json")) + opendiscord.languages.add(new api.ODJsonLanguage("opendiscord:swedish","swedish.json")) /** How to add more languages? * - Register the language to the manager (see above) From 45dfc18c1d9f53ffe2da54b7bc2af6a8d8dc942f Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Wed, 26 Mar 2025 15:14:11 +0100 Subject: [PATCH 18/31] Updated all file versions to v4.0.1 --- .eggs/README.md | 5 ++- .eggs/openticket-egg-v4.0.1.json | 62 ++++++++++++++++++++++++++++++++ .github/CONTRIBUTING.md | 2 +- .github/SECURITY.md | 16 ++++----- README.md | 2 +- config/general.json | 2 +- config/panels.json | 2 +- index.js | 2 +- languages/arabic.json | 2 +- languages/catalan.json | 2 +- languages/custom.json | 2 +- languages/czech.json | 2 +- languages/danish.json | 2 +- languages/dutch.json | 2 +- languages/english.json | 2 +- languages/estonian.json | 2 +- languages/finnish.json | 2 +- languages/french.json | 2 +- languages/german.json | 2 +- languages/hindi.json | 2 +- languages/hungarian.json | 2 +- languages/indonesian.json | 2 +- languages/italian.json | 2 +- languages/latvian.json | 2 +- languages/lithuanian.json | 2 +- languages/norwegian.json | 2 +- languages/polish.json | 2 +- languages/portuguese.json | 2 +- languages/romanian.json | 2 +- languages/russian.json | 2 +- languages/spanish.json | 2 +- languages/swedish.json | 2 +- languages/thai.json | 2 +- languages/turkish.json | 2 +- languages/ukrainian.json | 2 +- package.json | 2 +- src/core/api/main.ts | 2 +- src/core/startup/migration.ts | 4 ++- src/index.ts | 2 +- src/livestatus.json | 10 +++--- 40 files changed, 117 insertions(+), 50 deletions(-) create mode 100644 .eggs/openticket-egg-v4.0.1.json diff --git a/.eggs/README.md b/.eggs/README.md index b165f4a..a006ca3 100644 --- a/.eggs/README.md +++ b/.eggs/README.md @@ -1,7 +1,7 @@ # Pterodactyl Eggs
-[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.0) [](https://github.com/sponsors/DJj123dj)
+[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.1) [](https://github.com/sponsors/DJj123dj)
Hi there! Open Ticket provides **official eggs** for the Pterodactyl & Pelican panels!
-[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.0) [](https://github.com/sponsors/DJj123dj)
+[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.1) [](https://github.com/sponsors/DJj123dj)
These are the Contributing Guidelines of Open Ticket!
-[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.0) [](https://github.com/sponsors/DJj123dj)
+[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.1) [](https://github.com/sponsors/DJj123dj)
This is the Security Policy of Open Ticket!
-[](https://discord.com/invite/26vT9wt3n3) [](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.1) [](https://github.com/sponsors/DJj123dj)
+[](https://discord.com/invite/26vT9wt3n3)
+[](https://github.com/open-discord-bots/open-ticket/releases/tag/v4.0.1)
+[](https://github.com/sponsors/DJj123dj)
+[](.eggs/README.md)
+
Hi there! Open Ticket provides **official eggs** for the Pterodactyl & Pelican panels!
From dd5b76f3d83b220d607f7b201071ba89c6da5f79 Mon Sep 17 00:00:00 2001
From: DJj123dj <80536295+DJj123dj@users.noreply.github.com>
Date: Mon, 31 Mar 2025 21:36:07 +0200
Subject: [PATCH 29/31] Update README.md
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 643da27..374ea6b 100644
--- a/README.md
+++ b/README.md
@@ -28,10 +28,10 @@ You're also able to customise every little aspect of the bot! From embeds to tra
### 📌 Features
- **🦇 pterodactyl support** - Open Ticket works perfect on Pterodactyl based panels! [(Download official eggs)](.eggs/README.md)
- **💩 no bloat** - Your Open Ticket bot doesn't contain any form of bloat or credits!
-- **🔒 tested & secure** - Open Ticket has been tested by thousands of servers and is very secure!
+- **🔒 tested & secure** - Open Ticket has been battletested by thousands of servers and is very secure!
- **📈 scalable** - Open Ticket is made to handle huge servers! (Already tested in **servers with 100k members**)
- **📄 HTML transcripts** - Make use of the most customisable, beautiful and easy-to-use HTML Transcripts!
-- **✅ ticket actions** - Close, Reopen, Delete, Rename & Move all your tickets!
+- **✅ ticket actions** - Close, Reopen, Delete, Claim, Pin, Rename & Move all your tickets!
- **🇬🇧 translation** - Open Ticket has been translated in more than **26 languages** by our community!
- **🎨 customisation** - Open Ticket has been created around customisation, everything can be customised!
- **🖥️ interactions** - The bot has full support for Buttons, Dropdowns, Slash Commands and Modals!
@@ -60,7 +60,7 @@ You're also able to customise every little aspect of the bot! From embeds to tra
> ### 📦 Resources
> Resources might not be accurate yet! *(because v4 is still in beta)*
>
->
+>
>
### ❤️ Sponsors
From 364bf4f702f928c820d1d15ad16e43e9f9a3914e Mon Sep 17 00:00:00 2001
From: DJj123dj <80536295+DJj123dj@users.noreply.github.com>
Date: Tue, 1 Apr 2025 20:12:42 +0200
Subject: [PATCH 30/31] #144 : Added quick builders for plugins
---
src/core/api/modules/builder.ts | 280 +++++++++++++++++++++++++++++++-
1 file changed, 276 insertions(+), 4 deletions(-)
diff --git a/src/core/api/modules/builder.ts b/src/core/api/modules/builder.ts
index 3627e25..8ae96d9 100644
--- a/src/core/api/modules/builder.ts
+++ b/src/core/api/modules/builder.ts
@@ -210,7 +210,7 @@ export class ODButtonInstance {
*/
export class ODButton