From 5f148159a27f8ce44782bb6eaf403f77d7fff55a Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:30:55 +0100 Subject: [PATCH 01/65] New translations Translations_en.properties (German) New German translation --- src/main/resources/Translations/Translations_de.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index c5de023..8405870 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -16,6 +16,7 @@ region = guildid = content = song = +user/id= [@User]/[ID] error = Fehler none = Nicht angegeben From 67a768d7c237a8417deea904b882220672c56ba6 Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:30:57 +0100 Subject: [PATCH 02/65] New translations Translations_en.properties (English) New English translation --- src/main/resources/Translations/Translations_en.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 660e58c..5804c6f 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -16,6 +16,7 @@ region = guildid = content = song = +user/id= [@User]/[ID] error = Error none = None @@ -42,7 +43,7 @@ commands.general.equals.string.equals.false = Well yes but actually No. This isn commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: -commands.general.equals.help.description = Check if two strings are the same +commands.general.equals.help.description = Checks if two strings are the same. commands.general.help.field.usage = Usage\: commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. From 9122349d92082ce355b6b7b04ec1a1143bad7202 Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:30:58 +0100 Subject: [PATCH 03/65] New translations Translations_en.properties (Spanish) New Spanish translation --- src/main/resources/Translations/Translations_es.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/Translations/Translations_es.properties b/src/main/resources/Translations/Translations_es.properties index 660e58c..27fe8d7 100644 --- a/src/main/resources/Translations/Translations_es.properties +++ b/src/main/resources/Translations/Translations_es.properties @@ -16,6 +16,7 @@ region = guildid = content = song = +user/id= [@User]/[ID] error = Error none = None From b8d7eb80dd887441f0f7b912976d5fe1ef1281e7 Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:30:59 +0100 Subject: [PATCH 04/65] New translations Translations_en.properties (French) New French translation --- src/main/resources/Translations/Translations_fr.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/Translations/Translations_fr.properties b/src/main/resources/Translations/Translations_fr.properties index 660e58c..27fe8d7 100644 --- a/src/main/resources/Translations/Translations_fr.properties +++ b/src/main/resources/Translations/Translations_fr.properties @@ -16,6 +16,7 @@ region = guildid = content = song = +user/id= [@User]/[ID] error = Error none = None From da0b8ef95559bd1d07aeca69538c6f2e0c9a8e82 Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:31:01 +0100 Subject: [PATCH 05/65] New translations Translations_en.properties (Russian) New Russian translation --- src/main/resources/Translations/Translations_ru.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/Translations/Translations_ru.properties b/src/main/resources/Translations/Translations_ru.properties index 660e58c..27fe8d7 100644 --- a/src/main/resources/Translations/Translations_ru.properties +++ b/src/main/resources/Translations/Translations_ru.properties @@ -16,6 +16,7 @@ region = guildid = content = song = +user/id= [@User]/[ID] error = Error none = None From 43edd6267f54341fd61172f3a1f7d4b2d137b510 Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:31:02 +0100 Subject: [PATCH 06/65] New translations Translations_en.properties (Turkish) New Turkish translation --- src/main/resources/Translations/Translations_tr.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/Translations/Translations_tr.properties b/src/main/resources/Translations/Translations_tr.properties index 660e58c..27fe8d7 100644 --- a/src/main/resources/Translations/Translations_tr.properties +++ b/src/main/resources/Translations/Translations_tr.properties @@ -16,6 +16,7 @@ region = guildid = content = song = +user/id= [@User]/[ID] error = Error none = None From b9359d190cf65fe2bc894ae6a7a4499a4ac00ece Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:31:03 +0100 Subject: [PATCH 07/65] New translations Translations_en.properties (Chinese Simplified) New Chinese Simplified translation --- src/main/resources/Translations/Translations_zh.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/Translations/Translations_zh.properties b/src/main/resources/Translations/Translations_zh.properties index 660e58c..27fe8d7 100644 --- a/src/main/resources/Translations/Translations_zh.properties +++ b/src/main/resources/Translations/Translations_zh.properties @@ -16,6 +16,7 @@ region = guildid = content = song = +user/id= [@User]/[ID] error = Error none = None From 6bfb153179c91a34d0392d82a82bd21acc9f33f7 Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:40:31 +0100 Subject: [PATCH 08/65] New translations Translations_en.properties (English) New English translation --- .../resources/Translations/Translations_en.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 5804c6f..55f2e5c 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -51,7 +51,7 @@ commands.general.help.help.label = [CommandName] commands.general.invite.success.title = Invite me\! commands.general.invite.success.description = [Invite me here\!]%extra% commands.general.invite.help.description = Shows the invitation link to invite Hadder to your server. -commands.general.ping.help.description = Shows the ping to the Discord API +commands.general.ping.help.description = Shows the ping to the Discord API. commands.misc.feedback.title.request.title = Feedback Topic commands.misc.feedback.title.request.description = Please send me the feedback topic. @@ -89,10 +89,10 @@ commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! commands.moderation.ban.yourself.error.description = You can not ban yourself\! -commands.moderation.ban.massban.success.description = I successfully baned %extra% Members\! -commands.moderation.ban.help.description = Bans one ore more user from the server +commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! +commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted -commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. +commands.moderation.lear.all.success.description = I successfully deleted %extra% messages\! commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! commands.moderation.clear.success.description = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! From a54a55baa5f28dfabc3312d6dabb0946080b72a7 Mon Sep 17 00:00:00 2001 From: Skidder Date: Thu, 26 Dec 2019 23:50:28 +0100 Subject: [PATCH 09/65] New translations Translations_en.properties (English) New English translation --- src/main/resources/Translations/Translations_en.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 55f2e5c..dd60277 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -92,7 +92,7 @@ commands.moderation.ban.yourself.error.description = You can not ban yourself\! commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted -commands.moderation.lear.all.success.description = I successfully deleted %extra% messages\! +commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! commands.moderation.clear.success.description = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! From 36c10da591376bf3ce2ea8410e5bfb1dfad6cff2 Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 03:00:52 +0100 Subject: [PATCH 10/65] New translations Translations_en.properties (German) New German translation --- src/main/resources/Translations/Translations_de.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 8405870..1762711 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -94,7 +94,9 @@ commands.moderation.ban.help.description = Bans one ore more user from the serve commands.moderation.lear.all.success.title = Erfolgreich gelöscht commands.moderation.lear.all.success.description = Ich habe erfolgreich %extra% Nachrichten gelöscht. commands.moderation.clear.number.error.description = Sie müssen eine Zahl zwischen 1 und 99 wählen\! -commands.moderation.clear.success.description = Ich habe erfolgreich %extra% Nachrichten gelöscht. +commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.plural = Ich habe erfolgreich %extra% Nachrichten gelöscht. commands.moderation.clear.message.error.title = Keine Nachrichten\! commands.moderation.clear.message.error.description = Es gibt keine Nachrichten in diesem Kanal. commands.moderation.clear.help.description = Löscht die angegebene Anzahl von Nachrichten. From 78ce7607bd6a55384f19065de16a50732fc56238 Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 03:00:54 +0100 Subject: [PATCH 11/65] New translations Translations_en.properties (English) New English translation --- src/main/resources/Translations/Translations_en.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index dd60277..21305fb 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -94,7 +94,9 @@ commands.moderation.ban.help.description = Bans one or more users from the serve commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! -commands.moderation.clear.success.description = Successfully deleted %extra% messages. +commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.plural = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! commands.moderation.clear.message.error.description = There are no messages in this channel. commands.moderation.clear.help.description = Deletes the specified number of messages. From 2c19a2d8c704155ae166e0bd0ebf6e95ccba20ba Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 03:00:55 +0100 Subject: [PATCH 12/65] New translations Translations_en.properties (Spanish) New Spanish translation --- src/main/resources/Translations/Translations_es.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_es.properties b/src/main/resources/Translations/Translations_es.properties index 27fe8d7..6ff6c80 100644 --- a/src/main/resources/Translations/Translations_es.properties +++ b/src/main/resources/Translations/Translations_es.properties @@ -94,7 +94,9 @@ commands.moderation.ban.help.description = Bans one ore more user from the serve commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! -commands.moderation.clear.success.description = Successfully deleted %extra% messages. +commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.plural = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! commands.moderation.clear.message.error.description = There are no messages in this channel. commands.moderation.clear.help.description = Deletes the specified number of messages. From 9be36aee3891b87e506051f9860fca27b7deb15f Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 03:00:57 +0100 Subject: [PATCH 13/65] New translations Translations_en.properties (French) New French translation --- src/main/resources/Translations/Translations_fr.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_fr.properties b/src/main/resources/Translations/Translations_fr.properties index 27fe8d7..6ff6c80 100644 --- a/src/main/resources/Translations/Translations_fr.properties +++ b/src/main/resources/Translations/Translations_fr.properties @@ -94,7 +94,9 @@ commands.moderation.ban.help.description = Bans one ore more user from the serve commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! -commands.moderation.clear.success.description = Successfully deleted %extra% messages. +commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.plural = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! commands.moderation.clear.message.error.description = There are no messages in this channel. commands.moderation.clear.help.description = Deletes the specified number of messages. From c6429f2e2f1396e5f0be54157b01636263e72538 Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 03:00:58 +0100 Subject: [PATCH 14/65] New translations Translations_en.properties (Russian) New Russian translation --- src/main/resources/Translations/Translations_ru.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_ru.properties b/src/main/resources/Translations/Translations_ru.properties index 27fe8d7..6ff6c80 100644 --- a/src/main/resources/Translations/Translations_ru.properties +++ b/src/main/resources/Translations/Translations_ru.properties @@ -94,7 +94,9 @@ commands.moderation.ban.help.description = Bans one ore more user from the serve commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! -commands.moderation.clear.success.description = Successfully deleted %extra% messages. +commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.plural = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! commands.moderation.clear.message.error.description = There are no messages in this channel. commands.moderation.clear.help.description = Deletes the specified number of messages. From 40d92b47bcf2f8f930a0c9dea973d2bb684c1ed1 Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 03:00:59 +0100 Subject: [PATCH 15/65] New translations Translations_en.properties (Turkish) New Turkish translation --- src/main/resources/Translations/Translations_tr.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_tr.properties b/src/main/resources/Translations/Translations_tr.properties index 27fe8d7..6ff6c80 100644 --- a/src/main/resources/Translations/Translations_tr.properties +++ b/src/main/resources/Translations/Translations_tr.properties @@ -94,7 +94,9 @@ commands.moderation.ban.help.description = Bans one ore more user from the serve commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! -commands.moderation.clear.success.description = Successfully deleted %extra% messages. +commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.plural = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! commands.moderation.clear.message.error.description = There are no messages in this channel. commands.moderation.clear.help.description = Deletes the specified number of messages. From 6e0f85377320320c48339034e58c5bace79e8d4b Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 03:01:01 +0100 Subject: [PATCH 16/65] New translations Translations_en.properties (Chinese Simplified) New Chinese Simplified translation --- src/main/resources/Translations/Translations_zh.properties | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_zh.properties b/src/main/resources/Translations/Translations_zh.properties index 27fe8d7..6ff6c80 100644 --- a/src/main/resources/Translations/Translations_zh.properties +++ b/src/main/resources/Translations/Translations_zh.properties @@ -94,7 +94,9 @@ commands.moderation.ban.help.description = Bans one ore more user from the serve commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! -commands.moderation.clear.success.description = Successfully deleted %extra% messages. +commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.plural = Successfully deleted %extra% messages. commands.moderation.clear.message.error.title = No messages\! commands.moderation.clear.message.error.description = There are no messages in this channel. commands.moderation.clear.help.description = Deletes the specified number of messages. From 240e5d3e6941248ed2ceb636b854f986a28f495b Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 16:50:28 +0100 Subject: [PATCH 17/65] New translations Translations_en.properties (German) New German translation --- .../Translations/Translations_de.properties | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 1762711..11b12c9 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -16,7 +16,7 @@ region = guildid = content = song = -user/id= [@User]/[ID] +user/id= [@Benutzer]/[ID] error = Fehler none = Nicht angegeben @@ -33,7 +33,7 @@ commands.fun.clyde.help.description = Sends a message as a webhook named Clyde. commands.general.about.success.title = Hadder - Info commands.general.about.success.description = Hadder ist ein Open-Source Discord Bot. -commands.general.about.success.field.one.title = Support the developers +commands.general.about.success.field.one.title = Unterstütze die Entwickler commands.general.about.success.field.one.description = Hadder ist für alle völlig kostenlos. Wir würden es begrüßen, wenn du etwas Geld an uns spendest. Klicken [hier]%extra%, um zu spenden. commands.general.about.help.description = Zeigt Informationen über Hadder. commands.general.equals.string.first.request = Bitte sende mir den ersten String. @@ -47,7 +47,7 @@ commands.general.equals.help.description = Prüft ob zwei Strings gleich sind commands.general.help.field.usage = Benutzung\: commands.general.help.error.description = Ich brauche die Links Einbetten Berechtigung, um das Hilfe-Menü zu senden\! commands.general.help.help.description = Zeigt jeden Befehl an und erklärt seine Verwendung. -commands.general.help.help.label = [CommandName] +commands.general.help.help.label = [BefehlName] commands.general.invite.success.title = Lade mich ein\! commands.general.invite.success.description = [Lade mich hier ein\!]%extra% commands.general.invite.help.description = Zeigt den Einladungslink an, um Hadder auf deinen Server einzuladen. @@ -73,12 +73,12 @@ commands.misc.github.user.error.description = Dieser Benutzer existiert nicht\! commands.misc.github.connect.title = Verbinde dein GH Konto commands.misc.github.connect.description = [Bitte verbinde dein GitHub-Konto hier]%extra% commands.misc.github.help.description = Zeigt Informationen über ein GitHub Benutzerprofil an. -commands.misc.screenshare.success.title = Here's your URL to share your Screen +commands.misc.screenshare.success.title = Hier ist deine URL, um deinen Bildschirm zu teilen commands.misc.screenshare.id.error.title = Warte. Das ist illegal. -commands.misc.screenshare.id.error.description = This ID is invalid. \nMaybe you entered a wrong ID. \n\nNote\: Make sure the Voice Channel is in this Guild. -commands.misc.screenshare.channel.error.title = Please choose a Voice Channel +commands.misc.screenshare.id.error.description = Diese ID ist ungültig. \nVielleicht haben Sie eine falsche ID eingegeben. \n\nHinweis\: Stellen Sie sicher, dass der Sprachkanal in dieser Guild ist. +commands.misc.screenshare.channel.error.title = Bitte wähle einen Sprachkanal commands.misc.screenshare.channel.error.description = Es gibt mehr als einen Sprachkanal mit diesem Namen -commands.misc.screenshare.number.error.title = You specified a wrong number\! +commands.misc.screenshare.number.error.title = Du hast eine falsche Nummer angegeben\! commands.misc.screenshare.number.error.description = Dies ist keine Zahl. commands.misc.screenshare.channel.existing.error = Warte ma' commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. From 2d71e87849dc4f1388de706f3cabbf7cdefb06fc Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 17:03:57 +0100 Subject: [PATCH 18/65] New translations Translations_en.properties (German) New German translation --- .../resources/Translations/Translations_de.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 11b12c9..519d51e 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -29,7 +29,7 @@ commands.fun.gif.help.description = Sucht nach einem GIF auf Giphy. commands.fun.meme.success.title = Dein zufälliges Meme\: commands.fun.meme.api.error = Die Anfrage an die Meme-API konnte nicht verarbeitet werden. Bitte versuche es später erneut. commands.fun.meme.help.description = Sendet dir einen zufälligen Meme. -commands.fun.clyde.help.description = Sends a message as a webhook named Clyde. +commands.fun.clyde.help.description = Sendet eine Nachricht als Webhook namens Clyde. commands.general.about.success.title = Hadder - Info commands.general.about.success.description = Hadder ist ein Open-Source Discord Bot. @@ -40,8 +40,8 @@ commands.general.equals.string.first.request = Bitte sende mir den ersten String commands.general.equals.string.second.request = Bitte sende mir den zweiten String. commands.general.equals.string.equals.true = Ja\! Der erste String entspricht dem zweiten String\! commands.general.equals.string.equals.false = Ja, aber eigentlich nein. Das ist nicht dasselbe. -commands.general.equals.string.first = First string\: -commands.general.equals.string.second = Second string\: +commands.general.equals.string.first = Erster String\: +commands.general.equals.string.second = Zweiter String\: commands.general.equals.string.result = Ergebnis\: commands.general.equals.help.description = Prüft ob zwei Strings gleich sind commands.general.help.field.usage = Benutzung\: @@ -81,7 +81,7 @@ commands.misc.screenshare.channel.error.description = Es gibt mehr als einen Spr commands.misc.screenshare.number.error.title = Du hast eine falsche Nummer angegeben\! commands.misc.screenshare.number.error.description = Dies ist keine Zahl. commands.misc.screenshare.channel.existing.error = Warte ma' -commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. +commands.misc.screenshare.channel.existing.description = Es existiert kein Sprachkanal der so heißt. \n\nHinweis\: Stellen Sie sicher, dass der Sprachkanal auf diesem Server ist. commands.misc.screenshare.help.description = Shows you the link to share your screen. commands.moderation.ban.success.title = %extra% Successfully banned %extra% From 672e23b84db6934fc50c42b073ecba07065311da Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 23:00:27 +0100 Subject: [PATCH 19/65] New translations Translations_en.properties (German) New German translation --- src/main/resources/Translations/Translations_de.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 519d51e..a6832d3 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -84,8 +84,8 @@ commands.misc.screenshare.channel.existing.error = Warte ma' commands.misc.screenshare.channel.existing.description = Es existiert kein Sprachkanal der so heißt. \n\nHinweis\: Stellen Sie sicher, dass der Sprachkanal auf diesem Server ist. commands.misc.screenshare.help.description = Shows you the link to share your screen. -commands.moderation.ban.success.title = %extra% Successfully banned %extra% -commands.moderation.ban.success.description = I successfully baned %extra% +commands.moderation.ban.success.title = %extra% hat %extra% erfolgreich gebannt +commands.moderation.ban.success.description = Ich habe %extra% erfolgreich gebannt commands.moderation.ban.error.title = Nicht möglich commands.moderation.ban.myself.error.description = Ich kann mich nicht selbst bannen\! commands.moderation.ban.yourself.error.description = Du kannst dich nicht selbst bannen\! From 77468a95742808d61f890d0c494b5439f2b3b11e Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 23:20:28 +0100 Subject: [PATCH 20/65] New translations Translations_en.properties (German) New German translation --- src/main/resources/Translations/Translations_de.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index a6832d3..cfeebd4 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -94,7 +94,7 @@ commands.moderation.ban.help.description = Bans one ore more user from the serve commands.moderation.lear.all.success.title = Erfolgreich gelöscht commands.moderation.lear.all.success.description = Ich habe erfolgreich %extra% Nachrichten gelöscht. commands.moderation.clear.number.error.description = Sie müssen eine Zahl zwischen 1 und 99 wählen\! -commands.moderation.clear.success.title = Successfully cleared +commands.moderation.clear.success.title = Erfolgreich gelöscht commands.moderation.clear.success.description.singular = Successfully deleted one message. commands.moderation.clear.success.description.plural = Ich habe erfolgreich %extra% Nachrichten gelöscht. commands.moderation.clear.message.error.title = Keine Nachrichten\! From db5e8f10c20ac54e48e41d3041d7dd755cc5ddd8 Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 23:40:31 +0100 Subject: [PATCH 21/65] New translations Translations_en.properties (German) New German translation --- .../resources/Translations/Translations_de.properties | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index cfeebd4..56c444e 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -82,7 +82,7 @@ commands.misc.screenshare.number.error.title = Du hast eine falsche Nummer angeg commands.misc.screenshare.number.error.description = Dies ist keine Zahl. commands.misc.screenshare.channel.existing.error = Warte ma' commands.misc.screenshare.channel.existing.description = Es existiert kein Sprachkanal der so heißt. \n\nHinweis\: Stellen Sie sicher, dass der Sprachkanal auf diesem Server ist. -commands.misc.screenshare.help.description = Shows you the link to share your screen. +commands.misc.screenshare.help.description = Zeigt dir den Link zum Teilen deines Bildschirms. commands.moderation.ban.success.title = %extra% hat %extra% erfolgreich gebannt commands.moderation.ban.success.description = Ich habe %extra% erfolgreich gebannt @@ -90,19 +90,19 @@ commands.moderation.ban.error.title = Nicht möglich commands.moderation.ban.myself.error.description = Ich kann mich nicht selbst bannen\! commands.moderation.ban.yourself.error.description = Du kannst dich nicht selbst bannen\! commands.moderation.ban.massban.success.description = Ich habe erfolgreich %extra% Mitglieder gebannt\! -commands.moderation.ban.help.description = Bans one ore more user from the server +commands.moderation.ban.help.description = Bannt einen oder mehrere Benutzer vom Server commands.moderation.lear.all.success.title = Erfolgreich gelöscht commands.moderation.lear.all.success.description = Ich habe erfolgreich %extra% Nachrichten gelöscht. commands.moderation.clear.number.error.description = Sie müssen eine Zahl zwischen 1 und 99 wählen\! commands.moderation.clear.success.title = Erfolgreich gelöscht -commands.moderation.clear.success.description.singular = Successfully deleted one message. +commands.moderation.clear.success.description.singular = Nachricht erfolgreich gelöscht. commands.moderation.clear.success.description.plural = Ich habe erfolgreich %extra% Nachrichten gelöscht. commands.moderation.clear.message.error.title = Keine Nachrichten\! commands.moderation.clear.message.error.description = Es gibt keine Nachrichten in diesem Kanal. commands.moderation.clear.help.description = Löscht die angegebene Anzahl von Nachrichten. commands.moderation.prefix.success.title = %extra% Successfully set %extra% -commands.moderation.prefix.success.description = I successfully set the new prefix for the guild to `%extra%`. -commands.moderation.prefix.error.description = The prefix must not contain **"** +commands.moderation.prefix.success.description = Ich habe das neue Präfix für die Guild erfolgreich auf `%extra% ` gesetzt. +commands.moderation.prefix.error.description = Das Präfix darf nicht **"** enthalten commands.moderation.prefix.help.description = Sets the Guild-Prefix. commands.moderation.invitedetect.activate.success.title = Erfolgreich aktiviert commands.moderation.invitedetect.activate.success.description = I successfully activated the invite link detection for this guild. From 8f3cfb4d7d5b4f3c4bcfd88b7818b5da8b525948 Mon Sep 17 00:00:00 2001 From: Skidder Date: Fri, 27 Dec 2019 23:50:29 +0100 Subject: [PATCH 22/65] New translations Translations_en.properties (German) New German translation --- .../resources/Translations/Translations_de.properties | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 56c444e..e866540 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -100,10 +100,10 @@ commands.moderation.clear.success.description.plural = Ich habe erfolgreich %ext commands.moderation.clear.message.error.title = Keine Nachrichten\! commands.moderation.clear.message.error.description = Es gibt keine Nachrichten in diesem Kanal. commands.moderation.clear.help.description = Löscht die angegebene Anzahl von Nachrichten. -commands.moderation.prefix.success.title = %extra% Successfully set %extra% -commands.moderation.prefix.success.description = Ich habe das neue Präfix für die Guild erfolgreich auf `%extra% ` gesetzt. -commands.moderation.prefix.error.description = Das Präfix darf nicht **"** enthalten -commands.moderation.prefix.help.description = Sets the Guild-Prefix. +commands.moderation.prefix.success.title = Erfolgreich festgelegt +commands.moderation.prefix.success.description = Ich habe den neuen Prefix für die Guild erfolgreich auf `%extra% ` gesetzt. +commands.moderation.prefix.error.description = Das Prefix darf nicht **"** enthalten +commands.moderation.prefix.help.description = Legt das Guild-Prefix fest. commands.moderation.invitedetect.activate.success.title = Erfolgreich aktiviert commands.moderation.invitedetect.activate.success.description = I successfully activated the invite link detection for this guild. commands.moderation.invitedetect.activate.error.title = Bereits aktiviert @@ -118,7 +118,7 @@ commands.moderation.kick.success.description = Ich habe %extra% erfolgreich geki commands.moderation.kick.error.title = Nicht möglich commands.moderation.kick.myself.error.description = Ich kann mich nicht selbst kicken\! commands.moderation.kick.yourself.error.description = Du kannst dich nicht selbst kicken. -commands.moderation.kick.mass.success.description = I successfully kicked %extra% Members\! +commands.moderation.kick.mass.success.description = Ich habe %extra% Mitglieder erfolgreich gekickt\! commands.moderation.kick.help.description = Wirft einen oder mehrere Benutzer vom Server. commands.moderation.kick.masskick.success.description = Ich habe %extra% Mitglieder erfolgreich gekickt. commands.moderation.nick.success.title = %extra% Successfully nicked %extra% From f0c5d94391cdee4cd3dd8372b7c85197e4c7cd7a Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 00:00:32 +0100 Subject: [PATCH 23/65] New translations Translations_en.properties (German) New German translation --- src/main/resources/Translations/Translations_de.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index e866540..2d6d1bd 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -121,10 +121,10 @@ commands.moderation.kick.yourself.error.description = Du kannst dich nicht selbs commands.moderation.kick.mass.success.description = Ich habe %extra% Mitglieder erfolgreich gekickt\! commands.moderation.kick.help.description = Wirft einen oder mehrere Benutzer vom Server. commands.moderation.kick.masskick.success.description = Ich habe %extra% Mitglieder erfolgreich gekickt. -commands.moderation.nick.success.title = %extra% Successfully nicked %extra% -commands.moderation.nick.success.description = I successfully nicked %extra%. +commands.moderation.nick.success.title = Erfolgreich umbenannt +commands.moderation.nick.success.description = Ich habe %extra% erfolgreich umbenannt. commands.moderation.nick.myself.success.description = Ich habe meinen Spitznamen erfolgreich geändert. -commands.moderation.nick.massnick.success.description = I successfully nicked %extra% Members. +commands.moderation.nick.massnick.success.description = Ich habe erfolgreich %extra% Mitglieder umbenannt. commands.moderation.nick.help.description = Benennt einen oder mehrere Benutzer um. commands.moderation.regionchange.regions.title = Alle Regionen commands.moderation.regionchange.success.title = Region erfolgreich gesetzt From bf5d3c836493e1ae884c8fe0f604e769204fff64 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 13:50:52 +0100 Subject: [PATCH 24/65] Unused imports --- src/main/java/com/bbn/hadder/Hadder.java | 1 - .../hadder/commands/music/InfoCommand.java | 2 +- .../hadder/commands/music/JoinCommand.java | 20 +++++++++---------- .../hadder/commands/music/PlayCommand.java | 1 - .../hadder/commands/music/QueueCommand.java | 1 - .../hadder/commands/music/SkipCommand.java | 2 -- .../hadder/commands/music/StopCommand.java | 1 - 7 files changed, 10 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/bbn/hadder/Hadder.java b/src/main/java/com/bbn/hadder/Hadder.java index 7e69d02..98d6f87 100644 --- a/src/main/java/com/bbn/hadder/Hadder.java +++ b/src/main/java/com/bbn/hadder/Hadder.java @@ -42,7 +42,6 @@ public class Hadder { builder.setToken(config.getBotToken()); HelpCommand helpCommand = new HelpCommand(); - AudioManager audioManager = new AudioManager(); CommandHandler commandHandler = new CommandHandler( diff --git a/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java b/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java index 62cf98d..2fa069b 100644 --- a/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java @@ -1,6 +1,5 @@ package com.bbn.hadder.commands.music; -import com.bbn.hadder.audio.AudioManager; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.utils.MessageEditor; @@ -20,6 +19,7 @@ public class InfoCommand implements Command { public void executed(String[] args, CommandEvent event) { if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) { AudioTrack track = event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "", "", "", "").build()).queue(); event.getTextChannel().sendMessage("Track Info" + String.format(QUEUE_DESCRIPTION, CD, event.getAudioManager().getOrNull(track.getInfo().title), "\n\u23F1 **|>** `[ " + event.getAudioManager().getTimestamp(track.getPosition()) + " / " + event.getAudioManager().getTimestamp(track.getInfo().length) + " ]`", "\n" + MIC, event.getAudioManager().getOrNull(track.getInfo().author), diff --git a/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java b/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java index 3992f90..d9ab13d 100644 --- a/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java @@ -33,32 +33,30 @@ public class JoinCommand implements Command { } else { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, - "commands.music.join.error.connecting.already.title", + MessageEditor.MessageType.WARNING, + "commands.music.join.error.connecting.already.title", "commands.music.join.error.connecting.already.description") .build()).queue(); } } else { event.getGuild().getAudioManager().openAudioConnection(vc); event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.INFO, - "commands.music.join.success.title", - "", - "commands.music.join.success.description", - vc.getName()) + MessageEditor.MessageType.INFO, + "commands.music.join.success.title", "", + "commands.music.join.success.description", vc.getName()) .build()).queue(); } } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, - "commands.music.join.error.connecting.trying.title", + MessageEditor.MessageType.WARNING, + "commands.music.join.error.connecting.trying.title", "commands.music.join.error.connecting.trying.description") .build()).queue(); } } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, - "commands.music.join.error.channel.title", + MessageEditor.MessageType.WARNING, + "commands.music.join.error.channel.title", "commands.music.join.error.channel.description") .build()).queue(); } diff --git a/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java b/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java index d01bc89..c0d4cf5 100644 --- a/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java @@ -1,6 +1,5 @@ package com.bbn.hadder.commands.music; -import com.bbn.hadder.audio.AudioManager; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.utils.MessageEditor; diff --git a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java index 9fb40fa..0076046 100644 --- a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java @@ -1,7 +1,6 @@ package com.bbn.hadder.commands.music; import com.bbn.hadder.audio.AudioInfo; -import com.bbn.hadder.audio.AudioManager; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.utils.MessageEditor; diff --git a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java index bc2de6c..8d7671c 100644 --- a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java @@ -1,7 +1,5 @@ package com.bbn.hadder.commands.music; -import com.bbn.hadder.audio.AudioInfo; -import com.bbn.hadder.audio.AudioManager; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; diff --git a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java index e61f3da..95fe6f9 100644 --- a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java @@ -1,6 +1,5 @@ package com.bbn.hadder.commands.music; -import com.bbn.hadder.audio.AudioManager; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.utils.MessageEditor; From 8d19b9ae07a7557751216144587713485c422c03 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 14:14:45 +0100 Subject: [PATCH 25/65] Info Command --- .../hadder/commands/music/InfoCommand.java | 19 ++++++++----------- .../hadder/commands/owner/EvalCommand.java | 8 ++++---- .../Translations/Translations_en.properties | 2 ++ 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java b/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java index 2fa069b..cf83fc7 100644 --- a/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java @@ -11,19 +11,16 @@ import com.sedmelluq.discord.lavaplayer.track.AudioTrack; public class InfoCommand implements Command { - private static final String CD = "\uD83D\uDCBF"; - private static final String MIC = "\uD83C\uDFA4"; - private static final String QUEUE_DESCRIPTION = "%s **|>** %s\n%s\n%s %s\n%s"; - @Override public void executed(String[] args, CommandEvent event) { - if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) { + if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() != null) { AudioTrack track = event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack(); - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "", "", "", "").build()).queue(); - event.getTextChannel().sendMessage("Track Info" + String.format(QUEUE_DESCRIPTION, CD, event.getAudioManager().getOrNull(track.getInfo().title), - "\n\u23F1 **|>** `[ " + event.getAudioManager().getTimestamp(track.getPosition()) + " / " + event.getAudioManager().getTimestamp(track.getInfo().length) + " ]`", - "\n" + MIC, event.getAudioManager().getOrNull(track.getInfo().author), - "\n\uD83C\uDFA7 **|>** " + "")).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, + "commands.music.info.success.title", "") + .setAuthor(track.getInfo().author) + .addField("Title", track.getInfo().title, true) + .addField("Progress", "`[ " + event.getAudioManager().getTimestamp(track.getPosition()) + " / " + event.getAudioManager().getTimestamp(track.getInfo().length) + " ]`", false) + .build()).queue(); } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.music.info.error.title", @@ -38,7 +35,7 @@ public class InfoCommand implements Command { @Override public String description() { - return "Shows information about the playing song"; + return "commands.music.info.help.description"; } @Override diff --git a/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java b/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java index b8098a2..b05c5f1 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java @@ -44,7 +44,7 @@ public class EvalCommand implements Command { engine.put("author", event.getAuthor()); engine.put("member", event.getMember()); engine.put("self", event.getGuild().getSelfMember()); - engine.put("audio", new AudioManager()); + engine.put("audio", event.getAudioManager()); engine.put("out", System.out); ScheduledExecutorService service = Executors.newScheduledThreadPool(1); @@ -55,12 +55,12 @@ public class EvalCommand implements Command { Object out; try { - String script = ""; + StringBuilder script = new StringBuilder(); for (int i = 0; i < args.length; i++) { args[i] = args[i].replace("```java", "").replace("```", ""); - script += i == args.length - 1 ? args[i] : args[i] + " "; + script.append(i == args.length - 1 ? args[i] : args[i] + " "); } - out = engine.eval(script); + out = engine.eval(script.toString()); event.getTextChannel().sendMessage(event.getMessageEditor() .getMessage(MessageEditor.MessageType.INFO, "commands.owner.eval.success.title", "") diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 2da7c59..3878e21 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -203,8 +203,10 @@ commands.music.play.success.length = Length commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info commands.music.info.error.title = No playing track commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment From d76bd5f338ecbe819bc33a2ed72471a4650d2cda Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 14:52:41 +0100 Subject: [PATCH 26/65] Playlist loaded --- .../java/com/bbn/hadder/audio/AudioManager.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/bbn/hadder/audio/AudioManager.java b/src/main/java/com/bbn/hadder/audio/AudioManager.java index f16baa2..a2f5757 100644 --- a/src/main/java/com/bbn/hadder/audio/AudioManager.java +++ b/src/main/java/com/bbn/hadder/audio/AudioManager.java @@ -98,7 +98,15 @@ public class AudioManager { } else if (playlist.isSearchResult()) { trackLoaded(playlist.getTracks().get(0)); } else { - event.getTextChannel().sendMessage("PL loaded :D").queue(); + for (int i = 0; i < Math.min(playlist.getTracks().size(), 69); i++) { + getTrackManager(guild).queue(playlist.getTracks().get(i), event.getMember()); + } + msg.editMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, + "commands.music.play.success.loading.title", "⏯", + "", "") + .addField(event.getMessageEditor().getTerm("commands.music.play.success.title"), playlist.getName(), true) + .addField(event.getMessageEditor().getTerm("commands.music.play.success.tracks"), String.valueOf(playlist.getTracks().size()), true) + .build()).queue(); } } @@ -141,13 +149,6 @@ public class AudioManager { event.getTextChannel().sendMessage("Skipped boyy :D").queue(); } - public String buildQueueMessage(AudioInfo info) { - AudioTrackInfo trackInfo = info.getTrack().getInfo(); - String title = trackInfo.title; - long length = trackInfo.length; - return "`[ " + getTimestamp(length) + " ]` " + title + "\n"; - } - public String getTimestamp(long milis) { long seconds = milis / 1000; long hours = Math.floorDiv(seconds, 3600); From 25b88c10059725f71cc15f4cb32be9269e41780c Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 14:52:52 +0100 Subject: [PATCH 27/65] Queue Command --- .../com/bbn/hadder/commands/music/QueueCommand.java | 12 ++++-------- .../Translations/Translations_en.properties | 10 ++++++---- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java index 0076046..6c9583d 100644 --- a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java @@ -4,7 +4,6 @@ import com.bbn.hadder.audio.AudioInfo; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.utils.MessageEditor; -import net.dv8tion.jda.api.EmbedBuilder; import java.util.Set; @@ -23,14 +22,11 @@ public class QueueCommand implements Command { ).build()).queue(); } else { Set queue = event.getAudioManager().getTrackManager(event.getGuild()).getQueuedTracks(); - EmbedBuilder b = event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, - "commands.music.queue.success.title", - "commands.music.queue.success.description") - .addField("Queued songs", String.valueOf(queue.size()), true); + StringBuilder builder = new StringBuilder(); for (AudioInfo g : queue) { - b.addField(g.getTrack().getInfo().author, g.getTrack().getInfo().title, true); + builder.append("**").append(g.getTrack().getInfo().author).append("**: `").append(g.getTrack().getInfo().title).append("` \n"); } - event.getTextChannel().sendMessage(b.build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "commands.music.queue.success.title", "", "commands.music.queue.success.description", builder.toString()).build()).queue(); } } @@ -41,7 +37,7 @@ public class QueueCommand implements Command { @Override public String description() { - return "Shows the music queue."; + return "commands.music.queue.help.description"; } @Override diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 3878e21..b0bc477 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -193,13 +193,14 @@ commands.music.leave.help.description = Leaves a voice channel commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% +commands.music.play.success.title = Title +commands.music.play.success.author = Author +commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks commands.music.play.error.load.title = %extra% Load failed %extra% commands.music.play.error.load.description = Unfortunately I can not load the given song. commands.music.play.error.match.title = %extra% No matches %extra% commands.music.play.error.match.description = I can not find a song named this on YouTube. -commands.music.play.success.title = Title -commands.music.play.success.author = Author -commands.music.play.success.length = Length commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. @@ -211,7 +212,8 @@ commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue. commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here From 1eb970fca4c0caef3e261ade6281353284d63562 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 15:11:24 +0100 Subject: [PATCH 28/65] Skip and Stop Command --- .../com/bbn/hadder/audio/AudioManager.java | 8 ---- .../hadder/commands/music/SkipCommand.java | 14 +++++- .../hadder/commands/music/StopCommand.java | 6 ++- .../Translations/Translations_en.properties | 43 ++++++++++--------- 4 files changed, 39 insertions(+), 32 deletions(-) diff --git a/src/main/java/com/bbn/hadder/audio/AudioManager.java b/src/main/java/com/bbn/hadder/audio/AudioManager.java index a2f5757..7bff815 100644 --- a/src/main/java/com/bbn/hadder/audio/AudioManager.java +++ b/src/main/java/com/bbn/hadder/audio/AudioManager.java @@ -136,14 +136,6 @@ public class AudioManager { return getTrackManager(member.getGuild()).getTrackInfo(getPlayer(member.getGuild()).getPlayingTrack()).getAuthor().equals(member); } - public boolean isIdle(CommandEvent event) { - if (!hasPlayer(event.getGuild()) || getPlayer(event.getGuild()).getPlayingTrack() == null) { - event.getTextChannel().sendMessage(" Idle no song lul :D").queue(); - return true; - } - return false; - } - public void forceSkipTrack(CommandEvent event) { getPlayer(event.getGuild()).stopTrack(); event.getTextChannel().sendMessage("Skipped boyy :D").queue(); diff --git a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java index 8d7671c..5b54f6f 100644 --- a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java @@ -2,6 +2,7 @@ package com.bbn.hadder.commands.music; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; +import com.bbn.hadder.utils.MessageEditor; /** * @author Skidder / GregTCLTK @@ -11,7 +12,16 @@ public class SkipCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { - event.getAudioManager().forceSkipTrack(event); + if (!event.getAudioManager().hasPlayer(event.getGuild()) || event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) { + event.getAudioManager().forceSkipTrack(event); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, + "commands.music.skip.success.title", + "commands.music.skip.success.description").build()).queue(); + } else { + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, + "commands.music.info.error.title", + "commands.music.info.error.description").build()).queue(); + } } @Override @@ -21,7 +31,7 @@ public class SkipCommand implements Command { @Override public String description() { - return "Skips the song"; + return "commands.music.skip.help.description"; } @Override diff --git a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java index 95fe6f9..4377929 100644 --- a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java @@ -12,7 +12,7 @@ public class StopCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { - if (event.getAudioManager().hasPlayer(event.getGuild())) { + if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) { event.getAudioManager().players.remove(event.getGuild().getId()); event.getAudioManager().getPlayer(event.getGuild()).destroy(); event.getAudioManager().getTrackManager(event.getGuild()).purgeQueue(); @@ -21,7 +21,9 @@ public class StopCommand implements Command { "commands.music.stop.success.title", "commands.music.stop.success.description").build()).queue(); } else { - event.getTextChannel().sendMessage("I love you <3").queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, + "commands.music.info.error.title", + "commands.music.info.error.description").build()).queue(); } } diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index b0bc477..d9f7d84 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -198,9 +198,9 @@ commands.music.play.success.author = Author commands.music.play.success.length = Length commands.music.play.success.tracks = Tracks commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. +commands.music.play.error.load.description = Unfortunately I can not load the given song commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. @@ -213,25 +213,28 @@ commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue commands.music.queue.success.description = This is the queue\: \n %extra% -commands.music.queue.help.description = Shows the music queue. +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif. -commands.nsfw.bdsm.help.description = Shows a random BDSM picture. -commands.nsfw.blowjob.help.description = Shows a random Blowjob picture. -commands.nsfw.boobs.help.description = Shows a random boob gif. -commands.nsfw.cum.help.description = Shows a random cum gif. -commands.nsfw.erotic.help.description = Shows a random erotic picture. -commands.nsfw.feet.help.description = Shows a random feet gif. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif. -commands.nsfw.randomporn.help.description = Shows a completely random porn gif. -commands.nsfw.solo.help.description = Shows a random solo gif. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Shows a random trans picture. +commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.bdsm.help.description = Shows a random BDSM picture +commands.nsfw.blowjob.help.description = Shows a random Blowjob picture +commands.nsfw.boobs.help.description = Shows a random boob gif +commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.erotic.help.description = Shows a random erotic picture +commands.nsfw.feet.help.description = Shows a random feet gif +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.pussy.help.description = Shows a random pussy gif +commands.nsfw.randomporn.help.description = Shows a completely random porn gif +commands.nsfw.solo.help.description = Shows a random solo gif +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Input From 50163ca1b061b0ab3c9bea4013b8d5dcf4b70fa3 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 15:22:03 +0100 Subject: [PATCH 29/65] Bug fixes and improvements --- .../com/bbn/hadder/audio/AudioManager.java | 1 - .../hadder/commands/music/QueueCommand.java | 4 +++- .../hadder/commands/music/SkipCommand.java | 2 +- .../hadder/commands/music/StopCommand.java | 2 +- .../com/bbn/hadder/utils/MessageEditor.java | 22 +++++++++---------- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/bbn/hadder/audio/AudioManager.java b/src/main/java/com/bbn/hadder/audio/AudioManager.java index 7bff815..07b4f1d 100644 --- a/src/main/java/com/bbn/hadder/audio/AudioManager.java +++ b/src/main/java/com/bbn/hadder/audio/AudioManager.java @@ -138,7 +138,6 @@ public class AudioManager { public void forceSkipTrack(CommandEvent event) { getPlayer(event.getGuild()).stopTrack(); - event.getTextChannel().sendMessage("Skipped boyy :D").queue(); } public String getTimestamp(long milis) { diff --git a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java index 6c9583d..60747f4 100644 --- a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java @@ -26,7 +26,9 @@ public class QueueCommand implements Command { for (AudioInfo g : queue) { builder.append("**").append(g.getTrack().getInfo().author).append("**: `").append(g.getTrack().getInfo().title).append("` \n"); } - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "commands.music.queue.success.title", "", "commands.music.queue.success.description", builder.toString()).build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, + "commands.music.queue.success.title", "", + "commands.music.queue.success.description", builder.toString()).build()).queue(); } } diff --git a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java index 5b54f6f..c0b94c3 100644 --- a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java @@ -12,7 +12,7 @@ public class SkipCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { - if (!event.getAudioManager().hasPlayer(event.getGuild()) || event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) { + if (event.getAudioManager().hasPlayer(event.getGuild()) && !event.getAudioManager().getTrackManager(event.getGuild()).getQueuedTracks().isEmpty()) { event.getAudioManager().forceSkipTrack(event); event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "commands.music.skip.success.title", diff --git a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java index 4377929..84bc911 100644 --- a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java @@ -12,7 +12,7 @@ public class StopCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { - if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) { + if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() != null) { event.getAudioManager().players.remove(event.getGuild().getId()); event.getAudioManager().getPlayer(event.getGuild()).destroy(); event.getAudioManager().getTrackManager(event.getGuild()).purgeQueue(); diff --git a/src/main/java/com/bbn/hadder/utils/MessageEditor.java b/src/main/java/com/bbn/hadder/utils/MessageEditor.java index c7205f1..c5b10fe 100644 --- a/src/main/java/com/bbn/hadder/utils/MessageEditor.java +++ b/src/main/java/com/bbn/hadder/utils/MessageEditor.java @@ -24,21 +24,21 @@ public class MessageEditor { return this.getMessage(type, "", "", "", "", "", ""); } - public EmbedBuilder getMessage(MessageType type, String title_language_string, String description_language_string) { - return this.getMessage(type, title_language_string, "", "", description_language_string, "", ""); + public EmbedBuilder getMessage(MessageType type, String title, String description) { + return this.getMessage(type, title, "", "", description, "", ""); } - public EmbedBuilder getMessage(MessageType type, String title_language_string, String title_extra, - String description_language_string, String description_extra) { - return this.getMessage(type, title_language_string, title_extra, "", description_language_string, description_extra, ""); + public EmbedBuilder getMessage(MessageType type, String title, String title_extra, + String description, String description_extra) { + return this.getMessage(type, title, title_extra, "", description, description_extra, ""); } - public EmbedBuilder getMessage(MessageType type, String title_language_string, String title_extra, String title_extra_two, - String description_language_string, String description_extra, String description_extra_two) { + public EmbedBuilder getMessage(MessageType type, String title, String title_extra, String title_extra_two, + String description, String description_extra, String description_extra_two) { String language = (this.user!=null) ? rethink.getLanguage(this.user.getId()) : null; EmbedBuilder eb = this.getDefaultSettings(type); - if (!title_language_string.equals("")) eb.setTitle(this.handle(language, title_language_string, title_extra, title_extra_two)); - if (!description_language_string.equals("")) eb.setDescription(this.handle(language, description_language_string, description_extra, description_extra_two)); + if (!title.equals("")) eb.setTitle(this.handle(language, title, title_extra, title_extra_two)); + if (!description.equals("")) eb.setDescription(this.handle(language, description, description_extra, description_extra_two)); return eb; } @@ -122,7 +122,7 @@ public class MessageEditor { Locale locale = new Locale(language_code); ResourceBundle resourceBundle = ResourceBundle.getBundle("Translations/Translations", locale); if (resourceBundle.containsKey(string)) - return resourceBundle.getString(string).replaceAll("%prefix%", "h.").replaceAll("%extra%", extra).replaceAll("%extra_two%", extra_two); - else return "This key doesn't exist. Please report this to the Bot Developers. Key: "+string+" Language_code: "+language_code; + return resourceBundle.getString(string).replaceAll("%extra%", extra).replaceAll("%extra_two%", extra_two); + else return "This key doesn't exist. Please report this to the Bot Developers. Key: " + string + " Language_code: " + language_code; } } From 50a2fa99bccfbd42d33ab49d505b0140c1c897a2 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 15:26:37 +0100 Subject: [PATCH 30/65] Voice Leave Listener --- src/main/java/com/bbn/hadder/Hadder.java | 2 +- .../hadder/listener/VoiceLeaveListener.java | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/bbn/hadder/Hadder.java b/src/main/java/com/bbn/hadder/Hadder.java index 98d6f87..4169459 100644 --- a/src/main/java/com/bbn/hadder/Hadder.java +++ b/src/main/java/com/bbn/hadder/Hadder.java @@ -108,7 +108,7 @@ public class Hadder { new InviteLinkListener(rethink), new RulesListener(rethink), new StarboardListener(rethink), - new VoiceLeaveListener()); + new VoiceLeaveListener(audioManager)); try { shardManager = builder.build(); diff --git a/src/main/java/com/bbn/hadder/listener/VoiceLeaveListener.java b/src/main/java/com/bbn/hadder/listener/VoiceLeaveListener.java index 35f4644..643a17a 100644 --- a/src/main/java/com/bbn/hadder/listener/VoiceLeaveListener.java +++ b/src/main/java/com/bbn/hadder/listener/VoiceLeaveListener.java @@ -1,7 +1,6 @@ package com.bbn.hadder.listener; import com.bbn.hadder.audio.AudioManager; -import com.bbn.hadder.audio.TrackManager; import net.dv8tion.jda.api.events.guild.voice.GuildVoiceLeaveEvent; import net.dv8tion.jda.api.hooks.ListenerAdapter; @@ -11,14 +10,19 @@ import net.dv8tion.jda.api.hooks.ListenerAdapter; public class VoiceLeaveListener extends ListenerAdapter { + private AudioManager audioManager; + + public VoiceLeaveListener(AudioManager audioManager) { + this.audioManager = audioManager; + } + @Override public void onGuildVoiceLeave(GuildVoiceLeaveEvent event) { - if (new AudioManager().hasPlayer(event.getGuild())) { - TrackManager manager = new AudioManager().getTrackManager(event.getGuild()); - manager.getQueuedTracks().stream() - .filter(info -> !info.getTrack().equals(new AudioManager().getPlayer(event.getGuild()).getPlayingTrack()) - && info.getAuthor().getUser().equals(event.getMember().getUser())) - .forEach(manager::remove); + if (new AudioManager().hasPlayer(event.getGuild()) && event.getChannelLeft().getMembers().equals(event.getGuild().getSelfMember())) { + audioManager.players.remove(event.getGuild().getId()); + audioManager.getPlayer(event.getGuild()).destroy(); + audioManager.getTrackManager(event.getGuild()).purgeQueue(); + event.getGuild().getAudioManager().closeAudioConnection(); } } } From e9e147361065e4a2dee9b4d737df4cb2f69ab573 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:31:04 +0100 Subject: [PATCH 31/65] New translations Translations_en.properties (German) New German translation --- .../Translations/Translations_de.properties | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 2d6d1bd..f998a9f 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Warte ma' commands.misc.screenshare.channel.existing.description = Es existiert kein Sprachkanal der so heißt. \n\nHinweis\: Stellen Sie sicher, dass der Sprachkanal auf diesem Server ist. commands.misc.screenshare.help.description = Zeigt dir den Link zum Teilen deines Bildschirms. -commands.moderation.ban.success.title = %extra% hat %extra% erfolgreich gebannt +commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.description = Ich habe %extra% erfolgreich gebannt commands.moderation.ban.error.title = Nicht möglich commands.moderation.ban.myself.error.description = Ich kann mich nicht selbst bannen\! @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -193,39 +193,48 @@ commands.music.leave.help.description = Verlässt einen Sprachkanal commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% -commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. -commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. commands.music.play.success.title = Title commands.music.play.success.author = Author commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks +commands.music.play.error.load.title = %extra% Load failed %extra% +commands.music.play.error.load.description = Unfortunately I can not load the given song +commands.music.play.error.match.title = %extra% No matches %extra% +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info +commands.music.info.error.title = No playing track +commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF wird nicht angezeigt? Klicke hier commands.nsfw.img.error.title = Bild wird nicht angezeigt? Klicke hier -commands.nsfw.anal.help.description = Zeigt einen zufälligen Anal GIF. -commands.nsfw.bdsm.help.description = Zeigt ein zufälliges BDSM Bild. -commands.nsfw.blowjob.help.description = Zeigt ein zufälliges Blowjob Bild. -commands.nsfw.boobs.help.description = Zeigt einen zufälligen Boob GIF. -commands.nsfw.cum.help.description = Zeigt einen zufälligen Cum GIF. -commands.nsfw.erotic.help.description = Zeigt ein zufälliges Erotik Bild. -commands.nsfw.feet.help.description = Zeigt einen zufälligen Feet GIF. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Zeigt einen zufälligen Porn GIF. -commands.nsfw.pussy.help.description = Zeigt einen zufälligen Pussy GIF. -commands.nsfw.randomporn.help.description = Zeigt ein völlig zufälliges Porno GIF. -commands.nsfw.solo.help.description = Zeigt einen zufälligen Solo GIF. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Zeigt ein zufälliges Trans Bild. +commands.nsfw.anal.help.description = Zeigt einen zufälligen Anal GIF +commands.nsfw.bdsm.help.description = Zeigt ein zufälliges BDSM Bild +commands.nsfw.blowjob.help.description = Zeigt ein zufälliges Blowjob Bild +commands.nsfw.boobs.help.description = Zeigt einen zufälligen Boob GIF +commands.nsfw.cum.help.description = Zeigt einen zufälligen Cum GIF +commands.nsfw.erotic.help.description = Zeigt ein zufälliges Erotik Bild +commands.nsfw.feet.help.description = Zeigt einen zufälligen Feet GIF +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Zeigt einen zufälligen Porn GIF +commands.nsfw.pussy.help.description = Zeigt einen zufälligen Pussy GIF +commands.nsfw.randomporn.help.description = Zeigt ein völlig zufälliges Porno GIF +commands.nsfw.solo.help.description = Zeigt einen zufälligen Solo GIF +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Zeigt ein zufälliges Trans Bild commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Eingabe From 79d1607f4014887e602836f14c05007c98b4b2c5 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:31:05 +0100 Subject: [PATCH 32/65] New translations Translations_en.properties (English) New English translation --- .../Translations/Translations_en.properties | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 21305fb..9ffd1bd 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Hol' up commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. commands.misc.screenshare.help.description = Shows you the link to share your screen. -commands.moderation.ban.success.title = %extra% Successfully banned %extra% +commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -193,39 +193,48 @@ commands.music.leave.help.description = Leaves a voice channel commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% -commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. -commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. commands.music.play.success.title = Title commands.music.play.success.author = Author commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks +commands.music.play.error.load.title = %extra% Load failed %extra% +commands.music.play.error.load.description = Unfortunately I can not load the given song +commands.music.play.error.match.title = %extra% No matches %extra% +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info +commands.music.info.error.title = No playing track +commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif. -commands.nsfw.bdsm.help.description = Shows a random BDSM picture. -commands.nsfw.blowjob.help.description = Shows a random Blowjob picture. -commands.nsfw.boobs.help.description = Shows a random boob gif. -commands.nsfw.cum.help.description = Shows a random cum gif. -commands.nsfw.erotic.help.description = Shows a random erotic picture. -commands.nsfw.feet.help.description = Shows a random feet gif. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif. -commands.nsfw.randomporn.help.description = Shows a completely random porn gif. -commands.nsfw.solo.help.description = Shows a random solo gif. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Shows a random trans picture. +commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.bdsm.help.description = Shows a random BDSM picture +commands.nsfw.blowjob.help.description = Shows a random Blowjob picture +commands.nsfw.boobs.help.description = Shows a random boob gif +commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.erotic.help.description = Shows a random erotic picture +commands.nsfw.feet.help.description = Shows a random feet gif +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.pussy.help.description = Shows a random pussy gif +commands.nsfw.randomporn.help.description = Shows a completely random porn gif +commands.nsfw.solo.help.description = Shows a random solo gif +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Input From 933ddb536348b30f50152f78881831055ab9fbf9 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:31:06 +0100 Subject: [PATCH 33/65] New translations Translations_en.properties (Spanish) New Spanish translation --- .../Translations/Translations_es.properties | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/resources/Translations/Translations_es.properties b/src/main/resources/Translations/Translations_es.properties index 6ff6c80..d9f7d84 100644 --- a/src/main/resources/Translations/Translations_es.properties +++ b/src/main/resources/Translations/Translations_es.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Hol' up commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. commands.misc.screenshare.help.description = Shows you the link to share your screen. -commands.moderation.ban.success.title = %extra% Successfully banned %extra% +commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -193,39 +193,48 @@ commands.music.leave.help.description = Leaves a voice channel commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% -commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. -commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. commands.music.play.success.title = Title commands.music.play.success.author = Author commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks +commands.music.play.error.load.title = %extra% Load failed %extra% +commands.music.play.error.load.description = Unfortunately I can not load the given song +commands.music.play.error.match.title = %extra% No matches %extra% +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info +commands.music.info.error.title = No playing track +commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif. -commands.nsfw.bdsm.help.description = Shows a random BDSM picture. -commands.nsfw.blowjob.help.description = Shows a random Blowjob picture. -commands.nsfw.boobs.help.description = Shows a random boob gif. -commands.nsfw.cum.help.description = Shows a random cum gif. -commands.nsfw.erotic.help.description = Shows a random erotic picture. -commands.nsfw.feet.help.description = Shows a random feet gif. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif. -commands.nsfw.randomporn.help.description = Shows a completely random porn gif. -commands.nsfw.solo.help.description = Shows a random solo gif. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Shows a random trans picture. +commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.bdsm.help.description = Shows a random BDSM picture +commands.nsfw.blowjob.help.description = Shows a random Blowjob picture +commands.nsfw.boobs.help.description = Shows a random boob gif +commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.erotic.help.description = Shows a random erotic picture +commands.nsfw.feet.help.description = Shows a random feet gif +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.pussy.help.description = Shows a random pussy gif +commands.nsfw.randomporn.help.description = Shows a completely random porn gif +commands.nsfw.solo.help.description = Shows a random solo gif +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Input From f1350e78e631992209444a31965507b941e59724 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:31:08 +0100 Subject: [PATCH 34/65] New translations Translations_en.properties (French) New French translation --- .../Translations/Translations_fr.properties | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/resources/Translations/Translations_fr.properties b/src/main/resources/Translations/Translations_fr.properties index 6ff6c80..d9f7d84 100644 --- a/src/main/resources/Translations/Translations_fr.properties +++ b/src/main/resources/Translations/Translations_fr.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Hol' up commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. commands.misc.screenshare.help.description = Shows you the link to share your screen. -commands.moderation.ban.success.title = %extra% Successfully banned %extra% +commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -193,39 +193,48 @@ commands.music.leave.help.description = Leaves a voice channel commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% -commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. -commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. commands.music.play.success.title = Title commands.music.play.success.author = Author commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks +commands.music.play.error.load.title = %extra% Load failed %extra% +commands.music.play.error.load.description = Unfortunately I can not load the given song +commands.music.play.error.match.title = %extra% No matches %extra% +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info +commands.music.info.error.title = No playing track +commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif. -commands.nsfw.bdsm.help.description = Shows a random BDSM picture. -commands.nsfw.blowjob.help.description = Shows a random Blowjob picture. -commands.nsfw.boobs.help.description = Shows a random boob gif. -commands.nsfw.cum.help.description = Shows a random cum gif. -commands.nsfw.erotic.help.description = Shows a random erotic picture. -commands.nsfw.feet.help.description = Shows a random feet gif. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif. -commands.nsfw.randomporn.help.description = Shows a completely random porn gif. -commands.nsfw.solo.help.description = Shows a random solo gif. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Shows a random trans picture. +commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.bdsm.help.description = Shows a random BDSM picture +commands.nsfw.blowjob.help.description = Shows a random Blowjob picture +commands.nsfw.boobs.help.description = Shows a random boob gif +commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.erotic.help.description = Shows a random erotic picture +commands.nsfw.feet.help.description = Shows a random feet gif +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.pussy.help.description = Shows a random pussy gif +commands.nsfw.randomporn.help.description = Shows a completely random porn gif +commands.nsfw.solo.help.description = Shows a random solo gif +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Input From 0185759ab0302610e8a6cc7f996455916a6f1a5a Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:31:09 +0100 Subject: [PATCH 35/65] New translations Translations_en.properties (Russian) New Russian translation --- .../Translations/Translations_ru.properties | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/resources/Translations/Translations_ru.properties b/src/main/resources/Translations/Translations_ru.properties index 6ff6c80..d9f7d84 100644 --- a/src/main/resources/Translations/Translations_ru.properties +++ b/src/main/resources/Translations/Translations_ru.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Hol' up commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. commands.misc.screenshare.help.description = Shows you the link to share your screen. -commands.moderation.ban.success.title = %extra% Successfully banned %extra% +commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -193,39 +193,48 @@ commands.music.leave.help.description = Leaves a voice channel commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% -commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. -commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. commands.music.play.success.title = Title commands.music.play.success.author = Author commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks +commands.music.play.error.load.title = %extra% Load failed %extra% +commands.music.play.error.load.description = Unfortunately I can not load the given song +commands.music.play.error.match.title = %extra% No matches %extra% +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info +commands.music.info.error.title = No playing track +commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif. -commands.nsfw.bdsm.help.description = Shows a random BDSM picture. -commands.nsfw.blowjob.help.description = Shows a random Blowjob picture. -commands.nsfw.boobs.help.description = Shows a random boob gif. -commands.nsfw.cum.help.description = Shows a random cum gif. -commands.nsfw.erotic.help.description = Shows a random erotic picture. -commands.nsfw.feet.help.description = Shows a random feet gif. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif. -commands.nsfw.randomporn.help.description = Shows a completely random porn gif. -commands.nsfw.solo.help.description = Shows a random solo gif. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Shows a random trans picture. +commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.bdsm.help.description = Shows a random BDSM picture +commands.nsfw.blowjob.help.description = Shows a random Blowjob picture +commands.nsfw.boobs.help.description = Shows a random boob gif +commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.erotic.help.description = Shows a random erotic picture +commands.nsfw.feet.help.description = Shows a random feet gif +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.pussy.help.description = Shows a random pussy gif +commands.nsfw.randomporn.help.description = Shows a completely random porn gif +commands.nsfw.solo.help.description = Shows a random solo gif +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Input From facc052cdd253a635f6c7237e222990abb674b56 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:31:10 +0100 Subject: [PATCH 36/65] New translations Translations_en.properties (Turkish) New Turkish translation --- .../Translations/Translations_tr.properties | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/resources/Translations/Translations_tr.properties b/src/main/resources/Translations/Translations_tr.properties index 6ff6c80..d9f7d84 100644 --- a/src/main/resources/Translations/Translations_tr.properties +++ b/src/main/resources/Translations/Translations_tr.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Hol' up commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. commands.misc.screenshare.help.description = Shows you the link to share your screen. -commands.moderation.ban.success.title = %extra% Successfully banned %extra% +commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -193,39 +193,48 @@ commands.music.leave.help.description = Leaves a voice channel commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% -commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. -commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. commands.music.play.success.title = Title commands.music.play.success.author = Author commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks +commands.music.play.error.load.title = %extra% Load failed %extra% +commands.music.play.error.load.description = Unfortunately I can not load the given song +commands.music.play.error.match.title = %extra% No matches %extra% +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info +commands.music.info.error.title = No playing track +commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif. -commands.nsfw.bdsm.help.description = Shows a random BDSM picture. -commands.nsfw.blowjob.help.description = Shows a random Blowjob picture. -commands.nsfw.boobs.help.description = Shows a random boob gif. -commands.nsfw.cum.help.description = Shows a random cum gif. -commands.nsfw.erotic.help.description = Shows a random erotic picture. -commands.nsfw.feet.help.description = Shows a random feet gif. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif. -commands.nsfw.randomporn.help.description = Shows a completely random porn gif. -commands.nsfw.solo.help.description = Shows a random solo gif. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Shows a random trans picture. +commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.bdsm.help.description = Shows a random BDSM picture +commands.nsfw.blowjob.help.description = Shows a random Blowjob picture +commands.nsfw.boobs.help.description = Shows a random boob gif +commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.erotic.help.description = Shows a random erotic picture +commands.nsfw.feet.help.description = Shows a random feet gif +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.pussy.help.description = Shows a random pussy gif +commands.nsfw.randomporn.help.description = Shows a completely random porn gif +commands.nsfw.solo.help.description = Shows a random solo gif +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Input From 285c85fb572b7cb051dfa5b95414ecb4b27b61c2 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:31:11 +0100 Subject: [PATCH 37/65] New translations Translations_en.properties (Chinese Simplified) New Chinese Simplified translation --- .../Translations/Translations_zh.properties | 55 +++++++++++-------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/src/main/resources/Translations/Translations_zh.properties b/src/main/resources/Translations/Translations_zh.properties index 6ff6c80..d9f7d84 100644 --- a/src/main/resources/Translations/Translations_zh.properties +++ b/src/main/resources/Translations/Translations_zh.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Hol' up commands.misc.screenshare.channel.existing.description = There is no Voice Channel named like this. \n\nNote\: Make sure the Voice Channel is in this Guild. commands.misc.screenshare.help.description = Shows you the link to share your screen. -commands.moderation.ban.success.title = %extra% Successfully banned %extra% +commands.moderation.ban.success.title = Successfully banned commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! @@ -179,9 +179,9 @@ commands.moderation.editrules.help.description = Edits the rules message. commands.music.join.success.title = Successfully connected commands.music.join.success.description = I successfully connected to %extra%. commands.music.join.error.connecting.already.title = Already connected -commands.music.join.error.connecting.already.description = I am already connected to your voice channel. +commands.music.join.error.connecting.already.description = I am already connected to your voice channel commands.music.join.error.connecting.trying.title = Already trying to connect -commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment. +commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment commands.music.join.error.channel.title = No Voice Channel commands.music.join.error.channel.description = You aren't in a Voice Channel. commands.music.join.help.description = Joins your voice channel @@ -193,39 +193,48 @@ commands.music.leave.help.description = Leaves a voice channel commands.music.play.load.title = %extra% Now loading %extra% commands.music.play.load.description = Trying to load the song... commands.music.play.success.loading.title = %extra% Now playing %extra% -commands.music.play.error.load.title = %extra% Load failed %extra% -commands.music.play.error.load.description = Unfortunately I can not load the given song. -commands.music.play.error.match.title = %extra% No matches %extra% -commands.music.play.error.match.description = I can not find a song named this on YouTube. commands.music.play.success.title = Title commands.music.play.success.author = Author commands.music.play.success.length = Length +commands.music.play.success.tracks = Tracks +commands.music.play.error.load.title = %extra% Load failed %extra% +commands.music.play.error.load.description = Unfortunately I can not load the given song +commands.music.play.error.match.title = %extra% No matches %extra% +commands.music.play.error.match.description = I can not find a song named this on YouTube commands.music.play.help.description = Plays a song commands.music.stop.success.title = Successfully stopped commands.music.stop.success.description = I successfully stopped the song. +commands.music.info.success.title = Track info +commands.music.info.error.title = No playing track +commands.music.info.error.description = I am not playing anything at the moment +commands.music.info.help.description = Shows information about the playing song commands.music.stop.help.description = Stops the song commands.music.queue.error.title = No queue commands.music.queue.error.description = There are no queued songs at the moment commands.music.queue.success.title = Queue -commands.music.queue.success.description = This is the queue\: %extra% +commands.music.queue.success.description = This is the queue\: \n %extra% +commands.music.queue.help.description = Shows the music queue +commands.music.skip.success.title = Successfully skipped +commands.music.skip.success.description = I successfully skipped to the next song +commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif. -commands.nsfw.bdsm.help.description = Shows a random BDSM picture. -commands.nsfw.blowjob.help.description = Shows a random Blowjob picture. -commands.nsfw.boobs.help.description = Shows a random boob gif. -commands.nsfw.cum.help.description = Shows a random cum gif. -commands.nsfw.erotic.help.description = Shows a random erotic picture. -commands.nsfw.feet.help.description = Shows a random feet gif. -commands.nsfw.fingering.help.description = Shows a random fingering gif. -commands.nsfw.linking.help.description = Shows a random licking gif. -commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif. -commands.nsfw.randomporn.help.description = Shows a completely random porn gif. -commands.nsfw.solo.help.description = Shows a random solo gif. -commands.nsfw.spank.help.description = Shows a random spank gif. -commands.nsfw.trans.help.description = Shows a random trans picture. +commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.bdsm.help.description = Shows a random BDSM picture +commands.nsfw.blowjob.help.description = Shows a random Blowjob picture +commands.nsfw.boobs.help.description = Shows a random boob gif +commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.erotic.help.description = Shows a random erotic picture +commands.nsfw.feet.help.description = Shows a random feet gif +commands.nsfw.fingering.help.description = Shows a random fingering gif +commands.nsfw.linking.help.description = Shows a random licking gif +commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.pussy.help.description = Shows a random pussy gif +commands.nsfw.randomporn.help.description = Shows a completely random porn gif +commands.nsfw.solo.help.description = Shows a random solo gif +commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command commands.owner.eval.success.input = Input From d5890dff4331cd4bf1a7eecd520e360922c92ae5 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:40:31 +0100 Subject: [PATCH 38/65] New translations Translations_en.properties (English) New English translation --- .../Translations/Translations_en.properties | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 9ffd1bd..bf6181d 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -220,16 +220,16 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.anal.help.description = Shows a random anal gif. commands.nsfw.bdsm.help.description = Shows a random BDSM picture commands.nsfw.blowjob.help.description = Shows a random Blowjob picture -commands.nsfw.boobs.help.description = Shows a random boob gif -commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.boobs.help.description = Shows a random boob gif. +commands.nsfw.cum.help.description = Shows a random cum gif. commands.nsfw.erotic.help.description = Shows a random erotic picture -commands.nsfw.feet.help.description = Shows a random feet gif -commands.nsfw.fingering.help.description = Shows a random fingering gif -commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Shows a random porn gif +commands.nsfw.feet.help.description = Shows a random feet gif. +commands.nsfw.fingering.help.description = Shows a random fingering gif. +commands.nsfw.linking.help.description = Shows a random licking gif. +commands.nsfw.porn.help.description = Shows a random porn gif. commands.nsfw.pussy.help.description = Shows a random pussy gif commands.nsfw.randomporn.help.description = Shows a completely random porn gif commands.nsfw.solo.help.description = Shows a random solo gif From 3ab5ee847129cce643a6d30aa4a1b1ed048c4cfa Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:50:36 +0100 Subject: [PATCH 39/65] New translations Translations_en.properties (German) New German translation --- .../Translations/Translations_de.properties | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index f998a9f..91cab73 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -47,7 +47,7 @@ commands.general.equals.help.description = Prüft ob zwei Strings gleich sind commands.general.help.field.usage = Benutzung\: commands.general.help.error.description = Ich brauche die Links Einbetten Berechtigung, um das Hilfe-Menü zu senden\! commands.general.help.help.description = Zeigt jeden Befehl an und erklärt seine Verwendung. -commands.general.help.help.label = [BefehlName] +commands.general.help.help.label = [Name des Commands] commands.general.invite.success.title = Lade mich ein\! commands.general.invite.success.description = [Lade mich hier ein\!]%extra% commands.general.invite.help.description = Zeigt den Einladungslink an, um Hadder auf deinen Server einzuladen. @@ -75,13 +75,13 @@ commands.misc.github.connect.description = [Bitte verbinde dein GitHub-Konto hie commands.misc.github.help.description = Zeigt Informationen über ein GitHub Benutzerprofil an. commands.misc.screenshare.success.title = Hier ist deine URL, um deinen Bildschirm zu teilen commands.misc.screenshare.id.error.title = Warte. Das ist illegal. -commands.misc.screenshare.id.error.description = Diese ID ist ungültig. \nVielleicht haben Sie eine falsche ID eingegeben. \n\nHinweis\: Stellen Sie sicher, dass der Sprachkanal in dieser Guild ist. +commands.misc.screenshare.id.error.description = Diese ID ist ungültig. \nVielleicht hast du eine falsche ID eingegeben. \n\nHinweis\: Stelle sicher, dass der Sprachkanal auf diesem Server ist. commands.misc.screenshare.channel.error.title = Bitte wähle einen Sprachkanal commands.misc.screenshare.channel.error.description = Es gibt mehr als einen Sprachkanal mit diesem Namen commands.misc.screenshare.number.error.title = Du hast eine falsche Nummer angegeben\! commands.misc.screenshare.number.error.description = Dies ist keine Zahl. commands.misc.screenshare.channel.existing.error = Warte ma' -commands.misc.screenshare.channel.existing.description = Es existiert kein Sprachkanal der so heißt. \n\nHinweis\: Stellen Sie sicher, dass der Sprachkanal auf diesem Server ist. +commands.misc.screenshare.channel.existing.description = Es existiert kein Sprachkanal mit diesem Namen. \n\nHinweis\: Stelle sicher, dass der Sprachkanal auf diesem Server ist. commands.misc.screenshare.help.description = Zeigt dir den Link zum Teilen deines Bildschirms. commands.moderation.ban.success.title = Successfully banned @@ -101,9 +101,9 @@ commands.moderation.clear.message.error.title = Keine Nachrichten\! commands.moderation.clear.message.error.description = Es gibt keine Nachrichten in diesem Kanal. commands.moderation.clear.help.description = Löscht die angegebene Anzahl von Nachrichten. commands.moderation.prefix.success.title = Erfolgreich festgelegt -commands.moderation.prefix.success.description = Ich habe den neuen Prefix für die Guild erfolgreich auf `%extra% ` gesetzt. -commands.moderation.prefix.error.description = Das Prefix darf nicht **"** enthalten -commands.moderation.prefix.help.description = Legt das Guild-Prefix fest. +commands.moderation.prefix.success.description = Ich habe den neuen Prefix für die Guild erfolgreich zu `%extra% ` geändert. +commands.moderation.prefix.error.description = Der Prefix darf nicht **"** enthalten +commands.moderation.prefix.help.description = Legt den Guild-Prefix fest. commands.moderation.invitedetect.activate.success.title = Erfolgreich aktiviert commands.moderation.invitedetect.activate.success.description = I successfully activated the invite link detection for this guild. commands.moderation.invitedetect.activate.error.title = Bereits aktiviert @@ -220,19 +220,19 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF wird nicht angezeigt? Klicke hier commands.nsfw.img.error.title = Bild wird nicht angezeigt? Klicke hier -commands.nsfw.anal.help.description = Zeigt einen zufälligen Anal GIF +commands.nsfw.anal.help.description = Zeigt einen zufälliges Anal GIF commands.nsfw.bdsm.help.description = Zeigt ein zufälliges BDSM Bild commands.nsfw.blowjob.help.description = Zeigt ein zufälliges Blowjob Bild -commands.nsfw.boobs.help.description = Zeigt einen zufälligen Boob GIF -commands.nsfw.cum.help.description = Zeigt einen zufälligen Cum GIF +commands.nsfw.boobs.help.description = Zeigt einen zufälliges Boob GIF +commands.nsfw.cum.help.description = Zeigt ein zufälliges Cum GIF commands.nsfw.erotic.help.description = Zeigt ein zufälliges Erotik Bild -commands.nsfw.feet.help.description = Zeigt einen zufälligen Feet GIF +commands.nsfw.feet.help.description = Zeigt ein zufälliges Fuß GIF commands.nsfw.fingering.help.description = Shows a random fingering gif commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Zeigt einen zufälligen Porn GIF -commands.nsfw.pussy.help.description = Zeigt einen zufälligen Pussy GIF +commands.nsfw.porn.help.description = Zeigt ein zufälliges Porn GIF +commands.nsfw.pussy.help.description = Zeigt ein zufälliges Pussy GIF commands.nsfw.randomporn.help.description = Zeigt ein völlig zufälliges Porno GIF -commands.nsfw.solo.help.description = Zeigt einen zufälligen Solo GIF +commands.nsfw.solo.help.description = Zeigt ein zufälliges Solo GIF commands.nsfw.spank.help.description = Shows a random spank gif commands.nsfw.trans.help.description = Zeigt ein zufälliges Trans Bild From f6f6c17f6f5b43839d37dc81c4b550925eb8813f Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 15:50:37 +0100 Subject: [PATCH 40/65] New translations Translations_en.properties (English) New English translation --- .../resources/Translations/Translations_en.properties | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index bf6181d..d8cfb15 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -230,10 +230,10 @@ commands.nsfw.feet.help.description = Shows a random feet gif. commands.nsfw.fingering.help.description = Shows a random fingering gif. commands.nsfw.linking.help.description = Shows a random licking gif. commands.nsfw.porn.help.description = Shows a random porn gif. -commands.nsfw.pussy.help.description = Shows a random pussy gif -commands.nsfw.randomporn.help.description = Shows a completely random porn gif -commands.nsfw.solo.help.description = Shows a random solo gif -commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.pussy.help.description = Shows a random pussy gif. +commands.nsfw.randomporn.help.description = Shows a completely random porn gif. +commands.nsfw.solo.help.description = Shows a random solo gif. +commands.nsfw.spank.help.description = Shows a random spank gif. commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command From 1ac1bc2013d50e5915f4dc0892b9c73666b65b2e Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 18:40:31 +0100 Subject: [PATCH 41/65] New translations Translations_en.properties (German) New German translation --- src/main/resources/Translations/Translations_de.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 91cab73..3bf60ec 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -84,7 +84,7 @@ commands.misc.screenshare.channel.existing.error = Warte ma' commands.misc.screenshare.channel.existing.description = Es existiert kein Sprachkanal mit diesem Namen. \n\nHinweis\: Stelle sicher, dass der Sprachkanal auf diesem Server ist. commands.misc.screenshare.help.description = Zeigt dir den Link zum Teilen deines Bildschirms. -commands.moderation.ban.success.title = Successfully banned +commands.moderation.ban.success.title = Erfolgreich gebannt commands.moderation.ban.success.description = Ich habe %extra% erfolgreich gebannt commands.moderation.ban.error.title = Nicht möglich commands.moderation.ban.myself.error.description = Ich kann mich nicht selbst bannen\! From bd1414ee2d52fc066927153ff3785041a3998873 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 18:51:27 +0100 Subject: [PATCH 42/65] New translations Translations_en.properties (German) New German translation --- .../Translations/Translations_de.properties | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 3bf60ec..2483972 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -43,7 +43,7 @@ commands.general.equals.string.equals.false = Ja, aber eigentlich nein. Das ist commands.general.equals.string.first = Erster String\: commands.general.equals.string.second = Zweiter String\: commands.general.equals.string.result = Ergebnis\: -commands.general.equals.help.description = Prüft ob zwei Strings gleich sind +commands.general.equals.help.description = Checks if two strings are the same. commands.general.help.field.usage = Benutzung\: commands.general.help.error.description = Ich brauche die Links Einbetten Berechtigung, um das Hilfe-Menü zu senden\! commands.general.help.help.description = Zeigt jeden Befehl an und erklärt seine Verwendung. @@ -51,7 +51,7 @@ commands.general.help.help.label = [Name des Commands] commands.general.invite.success.title = Lade mich ein\! commands.general.invite.success.description = [Lade mich hier ein\!]%extra% commands.general.invite.help.description = Zeigt den Einladungslink an, um Hadder auf deinen Server einzuladen. -commands.general.ping.help.description = Zeigt den Ping zur Discord API +commands.general.ping.help.description = Zeigt den Ping zur Discord API. commands.misc.feedback.title.request.title = Feedback-Thema commands.misc.feedback.title.request.description = Bitte senden Sie mir das Thema des Feedbacks. @@ -89,8 +89,8 @@ commands.moderation.ban.success.description = Ich habe %extra% erfolgreich geban commands.moderation.ban.error.title = Nicht möglich commands.moderation.ban.myself.error.description = Ich kann mich nicht selbst bannen\! commands.moderation.ban.yourself.error.description = Du kannst dich nicht selbst bannen\! -commands.moderation.ban.massban.success.description = Ich habe erfolgreich %extra% Mitglieder gebannt\! -commands.moderation.ban.help.description = Bannt einen oder mehrere Benutzer vom Server +commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! +commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Erfolgreich gelöscht commands.moderation.lear.all.success.description = Ich habe erfolgreich %extra% Nachrichten gelöscht. commands.moderation.clear.number.error.description = Sie müssen eine Zahl zwischen 1 und 99 wählen\! @@ -130,7 +130,7 @@ commands.moderation.regionchange.regions.title = Alle Regionen commands.moderation.regionchange.success.title = Region erfolgreich gesetzt commands.moderation.regionchange.success.description = Ich habe die neue Serverregion erfolgreich zu %extra% geändert. commands.moderation.regionchange.help.description = Changes the server region to locked regions. -commands.moderation.role.add.success.title = %extra% Successfully added role(s) %extra% +commands.moderation.role.add.success.title = Rolle(n) Erfolgreich hinzugefügt commands.moderation.role.add.success.description = I successfully added %extra% roles to %extra_two% members. commands.moderation.role.remove.success.title = %extra% Successfully removed role(s) %extra% commands.moderation.role.remove.success.description = I successfully removed %extra% roles from %extra_two% members. @@ -220,20 +220,20 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF wird nicht angezeigt? Klicke hier commands.nsfw.img.error.title = Bild wird nicht angezeigt? Klicke hier -commands.nsfw.anal.help.description = Zeigt einen zufälliges Anal GIF +commands.nsfw.anal.help.description = Zeigt einen zufälligen Anal GIF. commands.nsfw.bdsm.help.description = Zeigt ein zufälliges BDSM Bild commands.nsfw.blowjob.help.description = Zeigt ein zufälliges Blowjob Bild -commands.nsfw.boobs.help.description = Zeigt einen zufälliges Boob GIF -commands.nsfw.cum.help.description = Zeigt ein zufälliges Cum GIF +commands.nsfw.boobs.help.description = Zeigt einen zufälligen Boob GIF. +commands.nsfw.cum.help.description = Zeigt einen zufälligen Cum GIF. commands.nsfw.erotic.help.description = Zeigt ein zufälliges Erotik Bild -commands.nsfw.feet.help.description = Zeigt ein zufälliges Fuß GIF -commands.nsfw.fingering.help.description = Shows a random fingering gif -commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Zeigt ein zufälliges Porn GIF -commands.nsfw.pussy.help.description = Zeigt ein zufälliges Pussy GIF -commands.nsfw.randomporn.help.description = Zeigt ein völlig zufälliges Porno GIF -commands.nsfw.solo.help.description = Zeigt ein zufälliges Solo GIF -commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.feet.help.description = Zeigt einen zufälligen Feet GIF. +commands.nsfw.fingering.help.description = Shows a random fingering gif. +commands.nsfw.linking.help.description = Shows a random licking gif. +commands.nsfw.porn.help.description = Zeigt einen zufälligen Porn GIF. +commands.nsfw.pussy.help.description = Zeigt einen zufälligen Pussy GIF. +commands.nsfw.randomporn.help.description = Zeigt ein völlig zufälliges Porno GIF. +commands.nsfw.solo.help.description = Zeigt einen zufälligen Solo GIF. +commands.nsfw.spank.help.description = Shows a random spank gif. commands.nsfw.trans.help.description = Zeigt ein zufälliges Trans Bild commands.owner.eval.success.title = Eval Command From d228b1075ad7efb457ecbf227a4cefb07e587f95 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 18:51:29 +0100 Subject: [PATCH 43/65] New translations Translations_en.properties (Spanish) New Spanish translation --- .../Translations/Translations_es.properties | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/resources/Translations/Translations_es.properties b/src/main/resources/Translations/Translations_es.properties index d9f7d84..d8cfb15 100644 --- a/src/main/resources/Translations/Translations_es.properties +++ b/src/main/resources/Translations/Translations_es.properties @@ -43,7 +43,7 @@ commands.general.equals.string.equals.false = Well yes but actually No. This isn commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: -commands.general.equals.help.description = Check if two strings are the same +commands.general.equals.help.description = Checks if two strings are the same. commands.general.help.field.usage = Usage\: commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. @@ -51,7 +51,7 @@ commands.general.help.help.label = [CommandName] commands.general.invite.success.title = Invite me\! commands.general.invite.success.description = [Invite me here\!]%extra% commands.general.invite.help.description = Shows the invitation link to invite Hadder to your server. -commands.general.ping.help.description = Shows the ping to the Discord API +commands.general.ping.help.description = Shows the ping to the Discord API. commands.misc.feedback.title.request.title = Feedback Topic commands.misc.feedback.title.request.description = Please send me the feedback topic. @@ -89,8 +89,8 @@ commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! commands.moderation.ban.yourself.error.description = You can not ban yourself\! -commands.moderation.ban.massban.success.description = I successfully baned %extra% Members\! -commands.moderation.ban.help.description = Bans one ore more user from the server +commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! +commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! @@ -220,20 +220,20 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.anal.help.description = Shows a random anal gif. commands.nsfw.bdsm.help.description = Shows a random BDSM picture commands.nsfw.blowjob.help.description = Shows a random Blowjob picture -commands.nsfw.boobs.help.description = Shows a random boob gif -commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.boobs.help.description = Shows a random boob gif. +commands.nsfw.cum.help.description = Shows a random cum gif. commands.nsfw.erotic.help.description = Shows a random erotic picture -commands.nsfw.feet.help.description = Shows a random feet gif -commands.nsfw.fingering.help.description = Shows a random fingering gif -commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Shows a random porn gif -commands.nsfw.pussy.help.description = Shows a random pussy gif -commands.nsfw.randomporn.help.description = Shows a completely random porn gif -commands.nsfw.solo.help.description = Shows a random solo gif -commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.feet.help.description = Shows a random feet gif. +commands.nsfw.fingering.help.description = Shows a random fingering gif. +commands.nsfw.linking.help.description = Shows a random licking gif. +commands.nsfw.porn.help.description = Shows a random porn gif. +commands.nsfw.pussy.help.description = Shows a random pussy gif. +commands.nsfw.randomporn.help.description = Shows a completely random porn gif. +commands.nsfw.solo.help.description = Shows a random solo gif. +commands.nsfw.spank.help.description = Shows a random spank gif. commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command From 644b68b3679b5577e62f8ddbe90276c040d233be Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 18:51:30 +0100 Subject: [PATCH 44/65] New translations Translations_en.properties (French) New French translation --- .../Translations/Translations_fr.properties | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/resources/Translations/Translations_fr.properties b/src/main/resources/Translations/Translations_fr.properties index d9f7d84..d8cfb15 100644 --- a/src/main/resources/Translations/Translations_fr.properties +++ b/src/main/resources/Translations/Translations_fr.properties @@ -43,7 +43,7 @@ commands.general.equals.string.equals.false = Well yes but actually No. This isn commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: -commands.general.equals.help.description = Check if two strings are the same +commands.general.equals.help.description = Checks if two strings are the same. commands.general.help.field.usage = Usage\: commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. @@ -51,7 +51,7 @@ commands.general.help.help.label = [CommandName] commands.general.invite.success.title = Invite me\! commands.general.invite.success.description = [Invite me here\!]%extra% commands.general.invite.help.description = Shows the invitation link to invite Hadder to your server. -commands.general.ping.help.description = Shows the ping to the Discord API +commands.general.ping.help.description = Shows the ping to the Discord API. commands.misc.feedback.title.request.title = Feedback Topic commands.misc.feedback.title.request.description = Please send me the feedback topic. @@ -89,8 +89,8 @@ commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! commands.moderation.ban.yourself.error.description = You can not ban yourself\! -commands.moderation.ban.massban.success.description = I successfully baned %extra% Members\! -commands.moderation.ban.help.description = Bans one ore more user from the server +commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! +commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! @@ -220,20 +220,20 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.anal.help.description = Shows a random anal gif. commands.nsfw.bdsm.help.description = Shows a random BDSM picture commands.nsfw.blowjob.help.description = Shows a random Blowjob picture -commands.nsfw.boobs.help.description = Shows a random boob gif -commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.boobs.help.description = Shows a random boob gif. +commands.nsfw.cum.help.description = Shows a random cum gif. commands.nsfw.erotic.help.description = Shows a random erotic picture -commands.nsfw.feet.help.description = Shows a random feet gif -commands.nsfw.fingering.help.description = Shows a random fingering gif -commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Shows a random porn gif -commands.nsfw.pussy.help.description = Shows a random pussy gif -commands.nsfw.randomporn.help.description = Shows a completely random porn gif -commands.nsfw.solo.help.description = Shows a random solo gif -commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.feet.help.description = Shows a random feet gif. +commands.nsfw.fingering.help.description = Shows a random fingering gif. +commands.nsfw.linking.help.description = Shows a random licking gif. +commands.nsfw.porn.help.description = Shows a random porn gif. +commands.nsfw.pussy.help.description = Shows a random pussy gif. +commands.nsfw.randomporn.help.description = Shows a completely random porn gif. +commands.nsfw.solo.help.description = Shows a random solo gif. +commands.nsfw.spank.help.description = Shows a random spank gif. commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command From 4fbd8556f3afc950a94d54e9f19976ad3d07161a Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 18:51:32 +0100 Subject: [PATCH 45/65] New translations Translations_en.properties (Russian) New Russian translation --- .../Translations/Translations_ru.properties | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/resources/Translations/Translations_ru.properties b/src/main/resources/Translations/Translations_ru.properties index d9f7d84..d8cfb15 100644 --- a/src/main/resources/Translations/Translations_ru.properties +++ b/src/main/resources/Translations/Translations_ru.properties @@ -43,7 +43,7 @@ commands.general.equals.string.equals.false = Well yes but actually No. This isn commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: -commands.general.equals.help.description = Check if two strings are the same +commands.general.equals.help.description = Checks if two strings are the same. commands.general.help.field.usage = Usage\: commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. @@ -51,7 +51,7 @@ commands.general.help.help.label = [CommandName] commands.general.invite.success.title = Invite me\! commands.general.invite.success.description = [Invite me here\!]%extra% commands.general.invite.help.description = Shows the invitation link to invite Hadder to your server. -commands.general.ping.help.description = Shows the ping to the Discord API +commands.general.ping.help.description = Shows the ping to the Discord API. commands.misc.feedback.title.request.title = Feedback Topic commands.misc.feedback.title.request.description = Please send me the feedback topic. @@ -89,8 +89,8 @@ commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! commands.moderation.ban.yourself.error.description = You can not ban yourself\! -commands.moderation.ban.massban.success.description = I successfully baned %extra% Members\! -commands.moderation.ban.help.description = Bans one ore more user from the server +commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! +commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! @@ -220,20 +220,20 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.anal.help.description = Shows a random anal gif. commands.nsfw.bdsm.help.description = Shows a random BDSM picture commands.nsfw.blowjob.help.description = Shows a random Blowjob picture -commands.nsfw.boobs.help.description = Shows a random boob gif -commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.boobs.help.description = Shows a random boob gif. +commands.nsfw.cum.help.description = Shows a random cum gif. commands.nsfw.erotic.help.description = Shows a random erotic picture -commands.nsfw.feet.help.description = Shows a random feet gif -commands.nsfw.fingering.help.description = Shows a random fingering gif -commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Shows a random porn gif -commands.nsfw.pussy.help.description = Shows a random pussy gif -commands.nsfw.randomporn.help.description = Shows a completely random porn gif -commands.nsfw.solo.help.description = Shows a random solo gif -commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.feet.help.description = Shows a random feet gif. +commands.nsfw.fingering.help.description = Shows a random fingering gif. +commands.nsfw.linking.help.description = Shows a random licking gif. +commands.nsfw.porn.help.description = Shows a random porn gif. +commands.nsfw.pussy.help.description = Shows a random pussy gif. +commands.nsfw.randomporn.help.description = Shows a completely random porn gif. +commands.nsfw.solo.help.description = Shows a random solo gif. +commands.nsfw.spank.help.description = Shows a random spank gif. commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command From 3604b0d8d85d47553b4c817e0af909f390a5660e Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 18:51:33 +0100 Subject: [PATCH 46/65] New translations Translations_en.properties (Turkish) New Turkish translation --- .../Translations/Translations_tr.properties | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/resources/Translations/Translations_tr.properties b/src/main/resources/Translations/Translations_tr.properties index d9f7d84..d8cfb15 100644 --- a/src/main/resources/Translations/Translations_tr.properties +++ b/src/main/resources/Translations/Translations_tr.properties @@ -43,7 +43,7 @@ commands.general.equals.string.equals.false = Well yes but actually No. This isn commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: -commands.general.equals.help.description = Check if two strings are the same +commands.general.equals.help.description = Checks if two strings are the same. commands.general.help.field.usage = Usage\: commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. @@ -51,7 +51,7 @@ commands.general.help.help.label = [CommandName] commands.general.invite.success.title = Invite me\! commands.general.invite.success.description = [Invite me here\!]%extra% commands.general.invite.help.description = Shows the invitation link to invite Hadder to your server. -commands.general.ping.help.description = Shows the ping to the Discord API +commands.general.ping.help.description = Shows the ping to the Discord API. commands.misc.feedback.title.request.title = Feedback Topic commands.misc.feedback.title.request.description = Please send me the feedback topic. @@ -89,8 +89,8 @@ commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! commands.moderation.ban.yourself.error.description = You can not ban yourself\! -commands.moderation.ban.massban.success.description = I successfully baned %extra% Members\! -commands.moderation.ban.help.description = Bans one ore more user from the server +commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! +commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! @@ -220,20 +220,20 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.anal.help.description = Shows a random anal gif. commands.nsfw.bdsm.help.description = Shows a random BDSM picture commands.nsfw.blowjob.help.description = Shows a random Blowjob picture -commands.nsfw.boobs.help.description = Shows a random boob gif -commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.boobs.help.description = Shows a random boob gif. +commands.nsfw.cum.help.description = Shows a random cum gif. commands.nsfw.erotic.help.description = Shows a random erotic picture -commands.nsfw.feet.help.description = Shows a random feet gif -commands.nsfw.fingering.help.description = Shows a random fingering gif -commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Shows a random porn gif -commands.nsfw.pussy.help.description = Shows a random pussy gif -commands.nsfw.randomporn.help.description = Shows a completely random porn gif -commands.nsfw.solo.help.description = Shows a random solo gif -commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.feet.help.description = Shows a random feet gif. +commands.nsfw.fingering.help.description = Shows a random fingering gif. +commands.nsfw.linking.help.description = Shows a random licking gif. +commands.nsfw.porn.help.description = Shows a random porn gif. +commands.nsfw.pussy.help.description = Shows a random pussy gif. +commands.nsfw.randomporn.help.description = Shows a completely random porn gif. +commands.nsfw.solo.help.description = Shows a random solo gif. +commands.nsfw.spank.help.description = Shows a random spank gif. commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command From e49bddd10c70ed2cb481a579fa767f00dbd21352 Mon Sep 17 00:00:00 2001 From: Skidder Date: Sat, 28 Dec 2019 18:51:34 +0100 Subject: [PATCH 47/65] New translations Translations_en.properties (Chinese Simplified) New Chinese Simplified translation --- .../Translations/Translations_zh.properties | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main/resources/Translations/Translations_zh.properties b/src/main/resources/Translations/Translations_zh.properties index d9f7d84..d8cfb15 100644 --- a/src/main/resources/Translations/Translations_zh.properties +++ b/src/main/resources/Translations/Translations_zh.properties @@ -43,7 +43,7 @@ commands.general.equals.string.equals.false = Well yes but actually No. This isn commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: -commands.general.equals.help.description = Check if two strings are the same +commands.general.equals.help.description = Checks if two strings are the same. commands.general.help.field.usage = Usage\: commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. @@ -51,7 +51,7 @@ commands.general.help.help.label = [CommandName] commands.general.invite.success.title = Invite me\! commands.general.invite.success.description = [Invite me here\!]%extra% commands.general.invite.help.description = Shows the invitation link to invite Hadder to your server. -commands.general.ping.help.description = Shows the ping to the Discord API +commands.general.ping.help.description = Shows the ping to the Discord API. commands.misc.feedback.title.request.title = Feedback Topic commands.misc.feedback.title.request.description = Please send me the feedback topic. @@ -89,8 +89,8 @@ commands.moderation.ban.success.description = I successfully baned %extra% commands.moderation.ban.error.title = Not possible commands.moderation.ban.myself.error.description = I can not ban myself\! commands.moderation.ban.yourself.error.description = You can not ban yourself\! -commands.moderation.ban.massban.success.description = I successfully baned %extra% Members\! -commands.moderation.ban.help.description = Bans one ore more user from the server +commands.moderation.ban.massban.success.description = I successfully banned %extra% members\! +commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! @@ -220,20 +220,20 @@ commands.music.skip.help.description = Skips the currently playing song commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here -commands.nsfw.anal.help.description = Shows a random anal gif +commands.nsfw.anal.help.description = Shows a random anal gif. commands.nsfw.bdsm.help.description = Shows a random BDSM picture commands.nsfw.blowjob.help.description = Shows a random Blowjob picture -commands.nsfw.boobs.help.description = Shows a random boob gif -commands.nsfw.cum.help.description = Shows a random cum gif +commands.nsfw.boobs.help.description = Shows a random boob gif. +commands.nsfw.cum.help.description = Shows a random cum gif. commands.nsfw.erotic.help.description = Shows a random erotic picture -commands.nsfw.feet.help.description = Shows a random feet gif -commands.nsfw.fingering.help.description = Shows a random fingering gif -commands.nsfw.linking.help.description = Shows a random licking gif -commands.nsfw.porn.help.description = Shows a random porn gif -commands.nsfw.pussy.help.description = Shows a random pussy gif -commands.nsfw.randomporn.help.description = Shows a completely random porn gif -commands.nsfw.solo.help.description = Shows a random solo gif -commands.nsfw.spank.help.description = Shows a random spank gif +commands.nsfw.feet.help.description = Shows a random feet gif. +commands.nsfw.fingering.help.description = Shows a random fingering gif. +commands.nsfw.linking.help.description = Shows a random licking gif. +commands.nsfw.porn.help.description = Shows a random porn gif. +commands.nsfw.pussy.help.description = Shows a random pussy gif. +commands.nsfw.randomporn.help.description = Shows a completely random porn gif. +commands.nsfw.solo.help.description = Shows a random solo gif. +commands.nsfw.spank.help.description = Shows a random spank gif. commands.nsfw.trans.help.description = Shows a random trans picture commands.owner.eval.success.title = Eval Command From 551bb13cbc276400da7f41f772e93aa23704c7e6 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 21:42:06 +0100 Subject: [PATCH 48/65] Some fixes --- README.md | 2 +- src/main/java/com/bbn/hadder/audio/AudioManager.java | 10 ---------- .../java/com/bbn/hadder/commands/fun/ClydeCommand.java | 1 + src/main/java/com/bbn/hadder/utils/BotList.java | 2 +- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index aeba086..20d142d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Hadder Discord is a multi-purpose Discord bot with 100% uptime. [![GitHub issues](https://img.shields.io/github/issues/BigBotNetwork/Hadder)](https://github.com/BigBotNetwork/Hadder/issues) [![GitHub license](https://img.shields.io/github/license/BigBotNetwork/Hadder)](https://github.com/BigBotNetwork/Hadder/blob/master/LICENSE) - +[![Discord Extreme List](https://api.discordextremelist.xyz/v1/bot/637002314162372639/widget)](https://discordextremelist.xyz/bots/Hadder) [![Discord Bots](https://top.gg/api/widget/637002314162372639.svg)](https://top.gg/bot/637002314162372639) [![Hadder's Widget](https://api.botlist.space/widget/637002314162372639/2 "Hadder's Widget")](https://botlist.space/bot/637002314162372639?utm_source=bls&utm_medium=widget&utm_campaign=637002314162372639) diff --git a/src/main/java/com/bbn/hadder/audio/AudioManager.java b/src/main/java/com/bbn/hadder/audio/AudioManager.java index 07b4f1d..1333346 100644 --- a/src/main/java/com/bbn/hadder/audio/AudioManager.java +++ b/src/main/java/com/bbn/hadder/audio/AudioManager.java @@ -37,16 +37,6 @@ public class AudioManager { return players.containsKey(guild.getId()); } - public void removePlayer(Guild g) { - System.out.println(players.toString()); - players.remove(g.getId()); - System.out.println(players.toString()); - } - - public Map> getPlayers () { - return players; - } - public AudioPlayer getPlayer(Guild guild) { AudioPlayer p; if (hasPlayer(guild)) { diff --git a/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java b/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java index 135ff57..eb9a51e 100644 --- a/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java +++ b/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java @@ -53,6 +53,7 @@ public class ClydeCommand implements Command { e.printStackTrace(); } webhook.delete().queue(); + event.getMessage().delete().queue(); } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue(); } diff --git a/src/main/java/com/bbn/hadder/utils/BotList.java b/src/main/java/com/bbn/hadder/utils/BotList.java index 5bbba34..6516d13 100644 --- a/src/main/java/com/bbn/hadder/utils/BotList.java +++ b/src/main/java/com/bbn/hadder/utils/BotList.java @@ -24,7 +24,7 @@ public class BotList { private static String DiscordBestBots = "https://discordsbestbots.xyz/api/bots/637002314162372639/stats"; private static String DiscordBoats = "https://discord.boats/api/bot/637002314162372639"; private static String YetAnotherBotList = "https://yabl.xyz/api/bot/637002314162372639/stats"; - private static String DiscordExtremeList = "https://discordextremelist.xyz/api/bot/637002314162372639"; + private static String DiscordExtremeList = "https://api.discordextremelist.xyz/v1/bot/637002314162372639"; private static String DiscordBotReviews = "https://discordbotreviews.xyz/api/bot/637002314162372639/stats"; private static String DiscordBots = "https://top.gg/api/bots/637002314162372639/stats"; private static String BotListSpace = "https://api.botlist.space/v1/bots/637002314162372639"; From aa435eac9af3c9bb564bea5fbb611fc11d92f4fc Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Sat, 28 Dec 2019 21:53:27 +0100 Subject: [PATCH 49/65] Codacy issue fix --- .../com/bbn/hadder/audio/AudioManager.java | 7 +++-- .../com/bbn/hadder/commands/CommandEvent.java | 1 - .../hadder/commands/owner/EvalCommand.java | 27 +++++++++---------- 3 files changed, 16 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/bbn/hadder/audio/AudioManager.java b/src/main/java/com/bbn/hadder/audio/AudioManager.java index 1333346..6dd6f18 100644 --- a/src/main/java/com/bbn/hadder/audio/AudioManager.java +++ b/src/main/java/com/bbn/hadder/audio/AudioManager.java @@ -10,7 +10,6 @@ import com.sedmelluq.discord.lavaplayer.source.AudioSourceManagers; import com.sedmelluq.discord.lavaplayer.tools.FriendlyException; import com.sedmelluq.discord.lavaplayer.track.AudioPlaylist; import com.sedmelluq.discord.lavaplayer.track.AudioTrack; -import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo; import net.dv8tion.jda.api.entities.Guild; import net.dv8tion.jda.api.entities.Member; import net.dv8tion.jda.api.entities.Message; @@ -26,13 +25,13 @@ import java.util.concurrent.TimeUnit; public class AudioManager { + public Map> players = new HashMap<>(); + private final AudioPlayerManager myManager = new DefaultAudioPlayerManager(); + public AudioManager() { AudioSourceManagers.registerRemoteSources(myManager); } - public Map> players = new HashMap<>(); - private final AudioPlayerManager myManager = new DefaultAudioPlayerManager(); - public boolean hasPlayer(Guild guild) { return players.containsKey(guild.getId()); } diff --git a/src/main/java/com/bbn/hadder/commands/CommandEvent.java b/src/main/java/com/bbn/hadder/commands/CommandEvent.java index 6e75d45..dc6d222 100644 --- a/src/main/java/com/bbn/hadder/commands/CommandEvent.java +++ b/src/main/java/com/bbn/hadder/commands/CommandEvent.java @@ -9,7 +9,6 @@ import com.bbn.hadder.utils.EventWaiter; import com.bbn.hadder.utils.MessageEditor; import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.entities.Message; -import net.dv8tion.jda.api.events.Event; import net.dv8tion.jda.api.events.message.MessageReceivedEvent; import javax.annotation.Nonnull; diff --git a/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java b/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java index b05c5f1..8112861 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java @@ -5,7 +5,6 @@ package com.bbn.hadder.commands.owner; */ import com.bbn.hadder.Hadder; -import com.bbn.hadder.audio.AudioManager; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; import com.bbn.hadder.core.Perm; @@ -33,19 +32,19 @@ public class EvalCommand implements Command { ex.printStackTrace(); } - engine.put("msg", event.getMessage()); - engine.put("shardmanager", Hadder.shardManager); - engine.put("rethink", event.getRethink()); - engine.put("event", event); - engine.put("jda", event.getJDA()); - engine.put("message", event.getMessage()); - engine.put("guild", event.getGuild()); - engine.put("channel", event.getChannel()); - engine.put("author", event.getAuthor()); - engine.put("member", event.getMember()); - engine.put("self", event.getGuild().getSelfMember()); - engine.put("audio", event.getAudioManager()); - engine.put("out", System.out); + engine.put("msg".toLowerCase(), event.getMessage()); + engine.put("shardmanager".toLowerCase(), Hadder.shardManager); + engine.put("rethink".toLowerCase(), event.getRethink()); + engine.put("event".toLowerCase(), event); + engine.put("jda".toLowerCase(), event.getJDA()); + engine.put("message".toLowerCase(), event.getMessage()); + engine.put("guild".toLowerCase(), event.getGuild()); + engine.put("channel".toLowerCase(), event.getChannel()); + engine.put("author".toLowerCase(), event.getAuthor()); + engine.put("member".toLowerCase(), event.getMember()); + engine.put("self".toLowerCase(), event.getGuild().getSelfMember()); + engine.put("audio".toLowerCase(), event.getAudioManager()); + engine.put("out".toLowerCase(), System.out); ScheduledExecutorService service = Executors.newScheduledThreadPool(1); From 3311bcd4285997e3020cd87292360dc54ec5eb1a Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 00:03:00 +0100 Subject: [PATCH 50/65] Remove unused import --- pom.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pom.xml b/pom.xml index c4f89c0..f34e6af 100644 --- a/pom.xml +++ b/pom.xml @@ -36,11 +36,6 @@ gson 2.8.6 - - org.slf4j - slf4j-api - 1.7.30 - org.slf4j slf4j-simple From 4dd6b05bd016eee3225922176378d8ebd52fed31 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 00:06:01 +0100 Subject: [PATCH 51/65] I think it was duplicated --- pom.xml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index f34e6af..04e1bf6 100644 --- a/pom.xml +++ b/pom.xml @@ -56,7 +56,6 @@ lavaplayer 1.3.32 - @@ -78,10 +77,6 @@ maven-resources-plugin 3.1.0 - - maven-compiler-plugin - 3.8.1 - maven-surefire-plugin 2.22.2 @@ -120,6 +115,7 @@ org.apache.maven.plugins maven-compiler-plugin + 3.8.1 13 13 From 29dd1787151a758fa658d180649d2f5ed45a9e45 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 03:46:43 +0100 Subject: [PATCH 52/65] CONTINUE WORK LATER!!! --- .../hadder/commands/general/HelpCommand.java | 25 ++++++++++++++++--- .../com/bbn/hadder/utils/MessageEditor.java | 5 +--- .../Translations/Translations_en.properties | 4 ++- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java index c564410..2028453 100644 --- a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java @@ -7,6 +7,7 @@ import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.Permission; import java.util.ArrayList; +import java.util.Date; import java.util.HashMap; import java.util.Map; @@ -56,15 +57,31 @@ public class HelpCommand implements Command { } } + public static class HelpInfo { + private String[] labels; + private String description; + private String usage; + private String example; + + public HelpInfo(String[] labels, String description, String usage, String example) { + this.labels = labels; + this.description = description; + this.usage = usage; + this.example = example; + } + } + public void sendHelp(Command cmd, CommandEvent event) { if (!cmd.getClass().getPackageName().endsWith("owner") || (cmd.getClass().getPackageName().endsWith("owner") && (event.getAuthor().getId().equals("477141528981012511") || event.getAuthor().getId().equals("261083609148948488")))) { - String name = cmd.labels()[0]; + String name = labels()[0]; event.getChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.INFO, "", cmd.description()) + MessageEditor.MessageType.INFO) .setTitle(name.replaceFirst(String.valueOf(name.charAt(0)), String.valueOf(name.charAt(0)).toUpperCase())) - .addField(MessageEditor.getTerm(event, "commands.general.help.field.usage", "", ""), - event.getRethink().getUserPrefix(event.getAuthor().getId()) + cmd.labels()[0] + " " + event.getMessageEditor().getTerm(cmd.usage()), false) + .setDescription( + event.getMessageEditor().getTerm("commands.general.help.description") + cmd.description() + "\n" + + event.getMessageEditor().getTerm("commands.general.help.usage") + event.getRethink().getGuildPrefix(event.getGuild().getId()) + name + " " + cmd.usage() + "\n" + + event.getMessageEditor().getTerm("commands.general.help.example") + event.getRethink().getGuildPrefix(event.getGuild().getId()) + name + "") .build()).queue(); } diff --git a/src/main/java/com/bbn/hadder/utils/MessageEditor.java b/src/main/java/com/bbn/hadder/utils/MessageEditor.java index c5b10fe..81b94c2 100644 --- a/src/main/java/com/bbn/hadder/utils/MessageEditor.java +++ b/src/main/java/com/bbn/hadder/utils/MessageEditor.java @@ -113,10 +113,7 @@ public class MessageEditor { return this.handle(rethink.getLanguage(user.getId()), string, extra, extra_two); } - public static String getTerm(CommandEvent event, String string, String extra, String extra_two) { - return new MessageEditor(null, null) - .handle(event.getRethink().getLanguage(event.getAuthor().getId()), string, extra, extra_two); - } + private String handle(String language_code, String string, String extra, String extra_two) { Locale locale = new Locale(language_code); diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index d8cfb15..6ae7aee 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -44,7 +44,9 @@ commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: commands.general.equals.help.description = Checks if two strings are the same. -commands.general.help.field.usage = Usage\: +commands.general.help.description = **Description: ** +commands.general.help.usage = **Usage\: ** +commands.general.help.example = **Example: ** commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. commands.general.help.help.label = [CommandName] From 5059e7b165d2542b94a2d10b9c8432dcc42e66b6 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 03:47:01 +0100 Subject: [PATCH 53/65] Continue later --- src/main/java/com/bbn/hadder/commands/Command.java | 6 +++--- .../java/com/bbn/hadder/commands/owner/TestCommand.java | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/Command.java b/src/main/java/com/bbn/hadder/commands/Command.java index c1e87c3..f7bb710 100644 --- a/src/main/java/com/bbn/hadder/commands/Command.java +++ b/src/main/java/com/bbn/hadder/commands/Command.java @@ -4,9 +4,9 @@ package com.bbn.hadder.commands; * @author Skidder / GregTCLTK */ +import com.bbn.hadder.commands.general.HelpCommand; + public interface Command { void executed(String[] args, CommandEvent event); - String[] labels(); - String description(); - String usage(); + HelpCommand.HelpInfo HELP_INFO(); } diff --git a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java index 58aaca5..162306c 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java @@ -2,6 +2,7 @@ package com.bbn.hadder.commands.owner; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; +import com.bbn.hadder.commands.general.HelpCommand; import com.bbn.hadder.utils.MessageEditor.MessageType; /* @@ -15,6 +16,12 @@ public class TestCommand implements Command { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageType.INFO, "commands.owner.test.success", "").build()).queue(); } + @Override + public HelpCommand.HelpInfo HELP_INFO() { + String[] d = {"d", "d"}; + return new HelpCommand.HelpInfo(d, "", "", ""); + } + @Override public String[] labels() { return new String[]{"test"}; From 9d0f60fe5644730ff338777ec20c9a089ad90968 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 13:50:01 +0100 Subject: [PATCH 54/65] Didn't work lul --- src/main/java/com/bbn/hadder/commands/Command.java | 11 ++++++++--- .../bbn/hadder/commands/general/HelpCommand.java | 14 -------------- .../com/bbn/hadder/commands/owner/TestCommand.java | 6 ------ 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/Command.java b/src/main/java/com/bbn/hadder/commands/Command.java index f7bb710..f07d6f0 100644 --- a/src/main/java/com/bbn/hadder/commands/Command.java +++ b/src/main/java/com/bbn/hadder/commands/Command.java @@ -4,9 +4,14 @@ package com.bbn.hadder.commands; * @author Skidder / GregTCLTK */ -import com.bbn.hadder.commands.general.HelpCommand; - public interface Command { void executed(String[] args, CommandEvent event); - HelpCommand.HelpInfo HELP_INFO(); + + String[] labels(); + + String description(); + + String usage(); + + String ex } diff --git a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java index 2028453..d615661 100644 --- a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java @@ -57,20 +57,6 @@ public class HelpCommand implements Command { } } - public static class HelpInfo { - private String[] labels; - private String description; - private String usage; - private String example; - - public HelpInfo(String[] labels, String description, String usage, String example) { - this.labels = labels; - this.description = description; - this.usage = usage; - this.example = example; - } - } - public void sendHelp(Command cmd, CommandEvent event) { if (!cmd.getClass().getPackageName().endsWith("owner") || (cmd.getClass().getPackageName().endsWith("owner") && (event.getAuthor().getId().equals("477141528981012511") || event.getAuthor().getId().equals("261083609148948488")))) { diff --git a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java index 162306c..c15afde 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java @@ -16,12 +16,6 @@ public class TestCommand implements Command { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageType.INFO, "commands.owner.test.success", "").build()).queue(); } - @Override - public HelpCommand.HelpInfo HELP_INFO() { - String[] d = {"d", "d"}; - return new HelpCommand.HelpInfo(d, "", "", ""); - } - @Override public String[] labels() { return new String[]{"test"}; From 14abfb442b37d53fbe3c0b39ff431f95dac67063 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 30 Dec 2019 13:21:13 +0000 Subject: [PATCH 55/65] Bump JDA from 4.1.0_87 to 4.1.0_88 Bumps JDA from 4.1.0_87 to 4.1.0_88. Signed-off-by: dependabot-preview[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 04e1bf6..127cdcc 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,7 @@ net.dv8tion JDA - 4.1.0_87 + 4.1.0_88 org.json From 238f238cd7f2c593bfa092ed88968d663daa1ff3 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 19:00:45 +0100 Subject: [PATCH 56/65] Some Help command stuff --- .../java/com/bbn/hadder/commands/Command.java | 2 +- .../bbn/hadder/commands/fun/AvatarCommand.java | 7 ++++++- .../bbn/hadder/commands/fun/ClydeCommand.java | 7 ++++++- .../bbn/hadder/commands/fun/GifCommand.java | 7 ++++++- .../bbn/hadder/commands/fun/MemeCommand.java | 7 ++++++- .../hadder/commands/general/AboutCommand.java | 7 ++++++- .../hadder/commands/general/EqualsCommand.java | 7 ++++++- .../hadder/commands/general/HelpCommand.java | 18 +++++++++++++----- .../hadder/commands/general/InviteCommand.java | 7 ++++++- .../hadder/commands/general/PingCommand.java | 7 ++++++- .../hadder/commands/misc/FeedbackCommand.java | 7 ++++++- .../hadder/commands/misc/GitHubCommand.java | 7 ++++++- .../commands/misc/ScreenShareCommand.java | 9 +++++++-- .../hadder/commands/moderation/BanCommand.java | 7 ++++++- .../commands/moderation/ClearCommand.java | 7 ++++++- .../commands/moderation/EditRulesCommand.java | 7 ++++++- .../moderation/InviteDetectCommand.java | 7 ++++++- .../commands/moderation/KickCommand.java | 7 ++++++- .../commands/moderation/NickCommand.java | 7 ++++++- .../commands/moderation/PrefixCommand.java | 7 ++++++- .../moderation/RegionChangeCommand.java | 7 ++++++- .../commands/moderation/RoleCommand.java | 7 ++++++- .../commands/moderation/RulesCommand.java | 7 ++++++- .../commands/moderation/StarBoardCommand.java | 7 ++++++- .../bbn/hadder/commands/music/InfoCommand.java | 7 ++++++- .../bbn/hadder/commands/music/JoinCommand.java | 7 ++++++- .../hadder/commands/music/LeaveCommand.java | 7 ++++++- .../bbn/hadder/commands/music/PlayCommand.java | 7 ++++++- .../hadder/commands/music/QueueCommand.java | 7 ++++++- .../bbn/hadder/commands/music/SkipCommand.java | 7 ++++++- .../bbn/hadder/commands/music/StopCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/AnalCommand.java | 8 ++++++-- .../bbn/hadder/commands/nsfw/BDSMCommand.java | 8 ++++++-- .../hadder/commands/nsfw/BlowjobCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/BoobsCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/CumCommand.java | 7 ++++++- .../hadder/commands/nsfw/EroticCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/FeetCommand.java | 7 ++++++- .../hadder/commands/nsfw/FingeringCommand.java | 7 ++++++- .../hadder/commands/nsfw/LickingCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/PornCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/PussyCommand.java | 7 ++++++- .../commands/nsfw/RandomPornCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/SoloCommand.java | 11 ++++++++--- .../bbn/hadder/commands/nsfw/SpankCommand.java | 7 ++++++- .../bbn/hadder/commands/nsfw/TransCommand.java | 7 ++++++- .../bbn/hadder/commands/owner/EvalCommand.java | 7 ++++++- .../commands/owner/GuildLeaveCommand.java | 7 ++++++- .../hadder/commands/owner/RebootCommand.java | 7 ++++++- .../hadder/commands/owner/ShutdownCommand.java | 7 ++++++- .../bbn/hadder/commands/owner/TestCommand.java | 7 ++++++- .../commands/settings/LanguageCommand.java | 7 ++++++- .../commands/settings/UserPrefixCommand.java | 7 ++++++- 53 files changed, 323 insertions(+), 62 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/Command.java b/src/main/java/com/bbn/hadder/commands/Command.java index f07d6f0..83132c0 100644 --- a/src/main/java/com/bbn/hadder/commands/Command.java +++ b/src/main/java/com/bbn/hadder/commands/Command.java @@ -13,5 +13,5 @@ public interface Command { String usage(); - String ex + String example(); } diff --git a/src/main/java/com/bbn/hadder/commands/fun/AvatarCommand.java b/src/main/java/com/bbn/hadder/commands/fun/AvatarCommand.java index 9bb48f9..e251c95 100644 --- a/src/main/java/com/bbn/hadder/commands/fun/AvatarCommand.java +++ b/src/main/java/com/bbn/hadder/commands/fun/AvatarCommand.java @@ -66,6 +66,11 @@ public class AvatarCommand implements Command { @Override public String usage() { - return "user/id"; + return "[User]"; + } + + @Override + public String example() { + return "@Skidder"; } } diff --git a/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java b/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java index eb9a51e..26d9070 100644 --- a/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java +++ b/src/main/java/com/bbn/hadder/commands/fun/ClydeCommand.java @@ -73,6 +73,11 @@ public class ClydeCommand implements Command { @Override public String usage() { - return "content"; + return "[Content]"; + } + + @Override + public String example() { + return "Hey I am Clyde"; } } diff --git a/src/main/java/com/bbn/hadder/commands/fun/GifCommand.java b/src/main/java/com/bbn/hadder/commands/fun/GifCommand.java index 760c139..78d70fd 100644 --- a/src/main/java/com/bbn/hadder/commands/fun/GifCommand.java +++ b/src/main/java/com/bbn/hadder/commands/fun/GifCommand.java @@ -58,6 +58,11 @@ public class GifCommand implements Command { @Override public String usage() { - return "searchterm"; + return "[Term]"; + } + + @Override + public String example() { + return "Cute cat"; } } diff --git a/src/main/java/com/bbn/hadder/commands/fun/MemeCommand.java b/src/main/java/com/bbn/hadder/commands/fun/MemeCommand.java index 2c1918b..b9c3e0c 100644 --- a/src/main/java/com/bbn/hadder/commands/fun/MemeCommand.java +++ b/src/main/java/com/bbn/hadder/commands/fun/MemeCommand.java @@ -57,6 +57,11 @@ public class MemeCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/general/AboutCommand.java b/src/main/java/com/bbn/hadder/commands/general/AboutCommand.java index 3800836..be5d20d 100644 --- a/src/main/java/com/bbn/hadder/commands/general/AboutCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/AboutCommand.java @@ -34,6 +34,11 @@ public class AboutCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/general/EqualsCommand.java b/src/main/java/com/bbn/hadder/commands/general/EqualsCommand.java index f2772e3..e3380f5 100644 --- a/src/main/java/com/bbn/hadder/commands/general/EqualsCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/EqualsCommand.java @@ -50,6 +50,11 @@ public class EqualsCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java index d615661..70e13c1 100644 --- a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java @@ -7,7 +7,6 @@ import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.Permission; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.Map; @@ -61,13 +60,17 @@ public class HelpCommand implements Command { if (!cmd.getClass().getPackageName().endsWith("owner") || (cmd.getClass().getPackageName().endsWith("owner") && (event.getAuthor().getId().equals("477141528981012511") || event.getAuthor().getId().equals("261083609148948488")))) { String name = labels()[0]; + StringBuilder b = new StringBuilder(); + b.append(event.getMessageEditor().getTerm("commands.general.help.description")).append(cmd.description()).append("\n"); + if (!cmd.usage().equals(null)) { + b.append(event.getMessageEditor().getTerm("commands.general.help.usage")).append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.usage()).append("\n"); + } event.getChannel().sendMessage(event.getMessageEditor().getMessage( MessageEditor.MessageType.INFO) .setTitle(name.replaceFirst(String.valueOf(name.charAt(0)), String.valueOf(name.charAt(0)).toUpperCase())) .setDescription( - event.getMessageEditor().getTerm("commands.general.help.description") + cmd.description() + "\n" + - event.getMessageEditor().getTerm("commands.general.help.usage") + event.getRethink().getGuildPrefix(event.getGuild().getId()) + name + " " + cmd.usage() + "\n" + - event.getMessageEditor().getTerm("commands.general.help.example") + event.getRethink().getGuildPrefix(event.getGuild().getId()) + name + "") + b.toString() + + event.getMessageEditor().getTerm("commands.general.help.example") + event.getRethink().getGuildPrefix(event.getGuild().getId()) + name + cmd.example()) .build()).queue(); } @@ -85,6 +88,11 @@ public class HelpCommand implements Command { @Override public String usage() { - return "commands.general.help.help.label"; + return "[Command name]"; + } + + @Override + public String example() { + return "ban"; } } diff --git a/src/main/java/com/bbn/hadder/commands/general/InviteCommand.java b/src/main/java/com/bbn/hadder/commands/general/InviteCommand.java index cac20c5..8d5a65c 100644 --- a/src/main/java/com/bbn/hadder/commands/general/InviteCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/InviteCommand.java @@ -37,6 +37,11 @@ public class InviteCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/general/PingCommand.java b/src/main/java/com/bbn/hadder/commands/general/PingCommand.java index 8317a45..09d2ebe 100644 --- a/src/main/java/com/bbn/hadder/commands/general/PingCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/PingCommand.java @@ -31,6 +31,11 @@ public class PingCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/misc/FeedbackCommand.java b/src/main/java/com/bbn/hadder/commands/misc/FeedbackCommand.java index a84d9f3..fb8cc4f 100644 --- a/src/main/java/com/bbn/hadder/commands/misc/FeedbackCommand.java +++ b/src/main/java/com/bbn/hadder/commands/misc/FeedbackCommand.java @@ -65,6 +65,11 @@ public class FeedbackCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java b/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java index 6547861..42fa95d 100644 --- a/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java +++ b/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java @@ -99,6 +99,11 @@ public class GitHubCommand implements Command { @Override public String usage() { - return "username"; + return "[GH-name]"; + } + + @Override + public String example() { + return "GregTCLTK"; } } diff --git a/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java b/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java index 9077d04..07381f7 100644 --- a/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java +++ b/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java @@ -21,7 +21,7 @@ public class ScreenShareCommand implements Command { try { if (vc.getIdLong() == Long.parseLong(args[0])) { event.getChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.INFO, + MessageEditor.MessageType.INFO, "commands.misc.screenshare.success.title", "") .setDescription("http://discordapp.com/channels/" + event.getGuild().getId() + "/" + vc.getId() + "/").build()).queue(); return; @@ -82,6 +82,11 @@ public class ScreenShareCommand implements Command { @Override public String usage() { - return "vc-name/id"; + return "[Channel]"; + } + + @Override + public String example() { + return "Gaming-Lounge"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java index de948d9..a6addca 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java @@ -92,6 +92,11 @@ public class BanCommand implements Command { @Override public String usage() { - return "user"; + return "[User(s)]"; + } + + @Override + public String example() { + return "@Skidder"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java index 2e9bc1f..1bcb4c5 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java @@ -97,6 +97,11 @@ public class ClearCommand implements Command { @Override public String usage() { - return "number"; + return "[Amount]"; + } + + @Override + public String example() { + return "69"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/EditRulesCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/EditRulesCommand.java index c8e9fd3..e276391 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/EditRulesCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/EditRulesCommand.java @@ -93,6 +93,11 @@ public class EditRulesCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java index b85fee6..7dd147b 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java @@ -70,6 +70,11 @@ public class InviteDetectCommand implements Command { @Override public String usage() { - return ""; + return "[on/off]"; + } + + @Override + public String example() { + return "on"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java index 911bb52..84f8dcf 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java @@ -77,6 +77,11 @@ public class KickCommand implements Command { @Override public String usage() { - return "user"; + return "[User(s)]"; + } + + @Override + public String example() { + return "@Skidder"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/NickCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/NickCommand.java index 6a10aa2..e15d9f9 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/NickCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/NickCommand.java @@ -105,6 +105,11 @@ public class NickCommand implements Command { @Override public String usage() { - return "user+nickname"; + return "[User(s)] [New nickname]"; + } + + @Override + public String example() { + return "@Skidder Cutie"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java index 86f2c12..ea643f2 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java @@ -46,6 +46,11 @@ public class PrefixCommand implements Command { @Override public String usage() { - return "prefix"; + return "[New Prefix]"; + } + + @Override + public String example() { + return "!"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java index 416a26b..f6bd71b 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java @@ -117,6 +117,11 @@ public class RegionChangeCommand implements Command { @Override public String usage() { - return "region"; + return "[New region]"; + } + + @Override + public String example() { + return "frankfurt"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java index 9c914bb..7dedf44 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java @@ -95,6 +95,11 @@ public class RoleCommand implements Command { @Override public String usage() { - return "add/remove <@role> <@user>"; + return "[add/remove] [Role>] [User]"; + } + + @Override + public String example() { + return "add @Skidder @Epic-Gamer"; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java index 99cc13e..7566d92 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java @@ -230,6 +230,11 @@ public class RulesCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/StarBoardCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/StarBoardCommand.java index 3371eec..80d926c 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/StarBoardCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/StarBoardCommand.java @@ -45,6 +45,11 @@ public class StarBoardCommand implements Command { @Override public String usage() { - return " [Needed stars]"; + return "[Channel] [Needed stars]"; + } + + @Override + public String example() { + return "#starboard 4"; } } diff --git a/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java b/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java index cf83fc7..e91f03e 100644 --- a/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/InfoCommand.java @@ -40,6 +40,11 @@ public class InfoCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java b/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java index d9ab13d..e9cc692 100644 --- a/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java @@ -74,6 +74,11 @@ public class JoinCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java b/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java index c2a0398..351d6d2 100644 --- a/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java @@ -40,6 +40,11 @@ public class LeaveCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java b/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java index c0d4cf5..4ac8e80 100644 --- a/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java @@ -52,6 +52,11 @@ public class PlayCommand implements Command { @Override public String usage() { - return "song"; + return "[Song URL/Name]"; + } + + @Override + public String example() { + return "Last Christmas"; } } diff --git a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java index 60747f4..dea68a1 100644 --- a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java @@ -44,6 +44,11 @@ public class QueueCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java index c0b94c3..c2265bd 100644 --- a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java @@ -36,6 +36,11 @@ public class SkipCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java index 84bc911..b9336bc 100644 --- a/src/main/java/com/bbn/hadder/commands/music/StopCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/StopCommand.java @@ -39,6 +39,11 @@ public class StopCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/AnalCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/AnalCommand.java index e03e354..e66169e 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/AnalCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/AnalCommand.java @@ -24,7 +24,6 @@ public class AnalCommand implements Command { Request request = new Request.Builder().url("https://api.nekos.dev/api/v3/images/nsfw/gif/anal/").build(); try { - Response response = caller.newCall(request).execute(); JSONObject json = new JSONObject(response.body().string()); JSONObject data = json.getJSONObject("data"); @@ -58,6 +57,11 @@ public class AnalCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/BDSMCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/BDSMCommand.java index 9458f57..3136a3e 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/BDSMCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/BDSMCommand.java @@ -24,7 +24,6 @@ public class BDSMCommand implements Command { Request request = new Request.Builder().url("https://api.nekos.dev/api/v3/images/nsfw/img/bdsm_lewd").build(); try { - Response response = caller.newCall(request).execute(); JSONObject json = new JSONObject(response.body().string()); JSONObject data = json.getJSONObject("data"); @@ -58,6 +57,11 @@ public class BDSMCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/BlowjobCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/BlowjobCommand.java index 661fb02..7f4302a 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/BlowjobCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/BlowjobCommand.java @@ -54,6 +54,11 @@ public class BlowjobCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/BoobsCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/BoobsCommand.java index 526299b..9ff9393 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/BoobsCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/BoobsCommand.java @@ -58,6 +58,11 @@ public class BoobsCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/CumCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/CumCommand.java index 55b33df..4eacd90 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/CumCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/CumCommand.java @@ -58,6 +58,11 @@ public class CumCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/EroticCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/EroticCommand.java index 21a5531..f3d8434 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/EroticCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/EroticCommand.java @@ -54,6 +54,11 @@ public class EroticCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/FeetCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/FeetCommand.java index b0d84f7..b3a56d4 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/FeetCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/FeetCommand.java @@ -58,6 +58,11 @@ public class FeetCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/FingeringCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/FingeringCommand.java index 0f176a8..983d6db 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/FingeringCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/FingeringCommand.java @@ -58,6 +58,11 @@ public class FingeringCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/LickingCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/LickingCommand.java index 8e3d25a..2219b45 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/LickingCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/LickingCommand.java @@ -58,6 +58,11 @@ public class LickingCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/PornCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/PornCommand.java index 50f7a72..32cabcb 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/PornCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/PornCommand.java @@ -58,6 +58,11 @@ public class PornCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/PussyCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/PussyCommand.java index 0cf188f..9e6410c 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/PussyCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/PussyCommand.java @@ -54,6 +54,11 @@ public class PussyCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/RandomPornCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/RandomPornCommand.java index 579cde8..ddc3d7e 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/RandomPornCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/RandomPornCommand.java @@ -62,6 +62,11 @@ public class RandomPornCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/SoloCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/SoloCommand.java index 2b77f97..1514b8e 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/SoloCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/SoloCommand.java @@ -31,8 +31,8 @@ public class SoloCommand implements Command { JSONObject response1 = data.getJSONObject("response"); String url = response1.toString().replace("{\"url\":\"", ""); -event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO) -.setAuthor(event.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url.replace("\"}", "")) + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO) + .setAuthor(event.getMessageEditor().getTerm("commands.nsfw.gif.error.title"), url.replace("\"}", "")) .setImage(url.replace("\"}", "")) .setFooter("Solo") .build()).queue(); @@ -58,6 +58,11 @@ event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEd @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/SpankCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/SpankCommand.java index fb9f993..12615ec 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/SpankCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/SpankCommand.java @@ -59,6 +59,11 @@ public class SpankCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/nsfw/TransCommand.java b/src/main/java/com/bbn/hadder/commands/nsfw/TransCommand.java index 45cf9d6..f2c0c97 100644 --- a/src/main/java/com/bbn/hadder/commands/nsfw/TransCommand.java +++ b/src/main/java/com/bbn/hadder/commands/nsfw/TransCommand.java @@ -55,6 +55,11 @@ public class TransCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java b/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java index 8112861..c9758b4 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/EvalCommand.java @@ -102,6 +102,11 @@ public class EvalCommand implements Command { @Override public String usage() { - return "commands.owner.eval.help.usage"; + return "[Code]"; + } + + @Override + public String example() { + return "System.out.println(\"Hey\")"; } } diff --git a/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java b/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java index b35d07d..a38860f 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java @@ -46,6 +46,11 @@ public class GuildLeaveCommand implements Command { @Override public String usage() { - return "guildid"; + return "[Guild-ID]"; + } + + @Override + public String example() { + return "366971954244354048"; } } diff --git a/src/main/java/com/bbn/hadder/commands/owner/RebootCommand.java b/src/main/java/com/bbn/hadder/commands/owner/RebootCommand.java index 35a2377..72f1feb 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/RebootCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/RebootCommand.java @@ -29,6 +29,11 @@ public class RebootCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/owner/ShutdownCommand.java b/src/main/java/com/bbn/hadder/commands/owner/ShutdownCommand.java index a002481..3245a42 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/ShutdownCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/ShutdownCommand.java @@ -33,6 +33,11 @@ public class ShutdownCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java index c15afde..64633f2 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java @@ -28,6 +28,11 @@ public class TestCommand implements Command { @Override public String usage() { - return ""; + return null; + } + + @Override + public String example() { + return null; } } diff --git a/src/main/java/com/bbn/hadder/commands/settings/LanguageCommand.java b/src/main/java/com/bbn/hadder/commands/settings/LanguageCommand.java index 3fbc1bb..6a8ca22 100644 --- a/src/main/java/com/bbn/hadder/commands/settings/LanguageCommand.java +++ b/src/main/java/com/bbn/hadder/commands/settings/LanguageCommand.java @@ -64,6 +64,11 @@ public class LanguageCommand implements Command { @Override public String usage() { - return "commands.settings.language.help.usage"; + return "[Language code]"; + } + + @Override + public String example() { + return "de"; } } diff --git a/src/main/java/com/bbn/hadder/commands/settings/UserPrefixCommand.java b/src/main/java/com/bbn/hadder/commands/settings/UserPrefixCommand.java index bf360fe..19d52e9 100644 --- a/src/main/java/com/bbn/hadder/commands/settings/UserPrefixCommand.java +++ b/src/main/java/com/bbn/hadder/commands/settings/UserPrefixCommand.java @@ -36,6 +36,11 @@ public class UserPrefixCommand implements Command { @Override public String usage() { - return "userprefix"; + return "[New Prefix]"; + } + + @Override + public String example() { + return "!"; } } From 19f7bc920db41b7e918722a2c54beee158040509 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 19:27:28 +0100 Subject: [PATCH 57/65] Help command improvements --- .../bbn/hadder/commands/general/HelpCommand.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java index 70e13c1..313a0e2 100644 --- a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java @@ -9,6 +9,7 @@ import net.dv8tion.jda.api.Permission; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; +import java.util.Optional; public class HelpCommand implements Command { @@ -61,18 +62,18 @@ public class HelpCommand implements Command { (event.getAuthor().getId().equals("477141528981012511") || event.getAuthor().getId().equals("261083609148948488")))) { String name = labels()[0]; StringBuilder b = new StringBuilder(); - b.append(event.getMessageEditor().getTerm("commands.general.help.description")).append(cmd.description()).append("\n"); - if (!cmd.usage().equals(null)) { + b.append(event.getMessageEditor().getTerm("commands.general.help.description")).append(event.getMessageEditor().getTerm(cmd.description())).append("\n"); + if (cmd.usage() != null) { b.append(event.getMessageEditor().getTerm("commands.general.help.usage")).append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.usage()).append("\n"); } + if (cmd.example() != null) { + b.append(event.getMessageEditor().getTerm("commands.general.help.example")).append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(cmd.example()); + } event.getChannel().sendMessage(event.getMessageEditor().getMessage( MessageEditor.MessageType.INFO) - .setTitle(name.replaceFirst(String.valueOf(name.charAt(0)), String.valueOf(name.charAt(0)).toUpperCase())) - .setDescription( - b.toString() + - event.getMessageEditor().getTerm("commands.general.help.example") + event.getRethink().getGuildPrefix(event.getGuild().getId()) + name + cmd.example()) + .setTitle(cmd.labels()[0]) + .setDescription(b.toString()) .build()).queue(); - } } From ff64355163fbf5bf2bdc5a3149178c5f18db5020 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Mon, 30 Dec 2019 19:30:18 +0100 Subject: [PATCH 58/65] A new help command :) --- .../java/com/bbn/hadder/commands/general/HelpCommand.java | 6 +++--- src/main/resources/Translations/Translations_en.properties | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java index 313a0e2..529cdf7 100644 --- a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java @@ -62,12 +62,12 @@ public class HelpCommand implements Command { (event.getAuthor().getId().equals("477141528981012511") || event.getAuthor().getId().equals("261083609148948488")))) { String name = labels()[0]; StringBuilder b = new StringBuilder(); - b.append(event.getMessageEditor().getTerm("commands.general.help.description")).append(event.getMessageEditor().getTerm(cmd.description())).append("\n"); + b.append(event.getMessageEditor().getTerm("commands.general.help.description")).append(" ").append(event.getMessageEditor().getTerm(cmd.description())).append("\n"); if (cmd.usage() != null) { - b.append(event.getMessageEditor().getTerm("commands.general.help.usage")).append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.usage()).append("\n"); + b.append(event.getMessageEditor().getTerm("commands.general.help.usage")).append(" ").append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.usage()).append("\n"); } if (cmd.example() != null) { - b.append(event.getMessageEditor().getTerm("commands.general.help.example")).append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(cmd.example()); + b.append(event.getMessageEditor().getTerm("commands.general.help.example")).append(" ").append(event.getRethink().getGuildPrefix(event.getGuild().getId())).append(name).append(" ").append(cmd.example()); } event.getChannel().sendMessage(event.getMessageEditor().getMessage( MessageEditor.MessageType.INFO) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 6ae7aee..2b77714 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -44,9 +44,9 @@ commands.general.equals.string.first = First string\: commands.general.equals.string.second = Second string\: commands.general.equals.string.result = Result\: commands.general.equals.help.description = Checks if two strings are the same. -commands.general.help.description = **Description: ** -commands.general.help.usage = **Usage\: ** -commands.general.help.example = **Example: ** +commands.general.help.description = **Description:** +commands.general.help.usage = **Usage\:** +commands.general.help.example = **Example:** commands.general.help.error.description = I need the Embed Links Permission to send the Help Menu\! commands.general.help.help.description = Shows each command and explains its usage. commands.general.help.help.label = [CommandName] From cc5177ac046eedd8208975412dbcb2c543b81f83 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Tue, 31 Dec 2019 01:38:25 +0100 Subject: [PATCH 59/65] Not needed anymore --- src/main/resources/Translations/Translations_en.properties | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index 2b77714..fa14672 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -243,7 +243,6 @@ commands.owner.eval.success.input = Input commands.owner.eval.success.output = Output commands.owner.eval.success.timing = Timing commands.owner.eval.help.description = Execute the given code -commands.owner.eval.help.usage = commands.owner.guildleave.success.title = Successfully left commands.owner.guildleave.success.description = I successfully left %extra%. commands.owner.guildleave.error.title = Can not leave @@ -258,7 +257,6 @@ commands.owner.test.help.description = Just a little Test Command commands.settings.language.success.title = Language set commands.settings.language.success.description = `%extra%` is your new language now. commands.settings.language.help.description = Sets the new primary language for a user. -commands.settings.language.help.usage = commands.settings.prefix.success.title = %extra% Successfully set %extra% commands.settings.prefix.success.description = I successfully set the new prefix for you to `%extra%`. commands.settings.prefix.help.description = Sets a new prefix. From 2eff728c2f05377441fa6a84398d34a70d1db09e Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Tue, 31 Dec 2019 03:30:16 +0100 Subject: [PATCH 60/65] Error messages fix --- .../hadder/commands/moderation/InviteDetectCommand.java | 2 ++ .../hadder/commands/moderation/RegionChangeCommand.java | 4 ++-- .../com/bbn/hadder/commands/moderation/RoleCommand.java | 8 +++++--- .../java/com/bbn/hadder/commands/music/QueueCommand.java | 3 ++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java index 7dd147b..fb3c7a1 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java @@ -52,6 +52,8 @@ public class InviteDetectCommand implements Command { .build()).queue(); } break; + default: + event.getHelpCommand().sendHelp(this, event); } } else { event.getHelpCommand().sendHelp(this, event); diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java index f6bd71b..95f7fff 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/RegionChangeCommand.java @@ -18,7 +18,7 @@ public class RegionChangeCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { if (args.length == 1) { - if (event.getMember().hasPermission(Permission.MANAGE_SERVER) || event.getConfig().getOwners().toString().contains(event.getAuthor().getId())) { + if (event.getGuild().getSelfMember().hasPermission(Permission.MANAGE_SERVER)) { switch (args[0].toLowerCase()) { case "amsterdam": setRegion(Region.AMSTERDAM, "Amsterdam", event); @@ -74,7 +74,7 @@ public class RegionChangeCommand implements Command { case "us-south": setRegion(Region.US_SOUTH, "US South", event); break; - case "list": + default: event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( MessageEditor.MessageType.INFO, diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java index 7dedf44..de04cfd 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java @@ -15,8 +15,7 @@ public class RoleCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { if (args.length > 0) { - if (event.getMember().hasPermission(Permission.MANAGE_ROLES)) { - + if (event.getGuild().getSelfMember().hasPermission(Permission.MANAGE_ROLES)) { String action = args[0].toLowerCase(); switch (action) { case "add": @@ -66,7 +65,7 @@ public class RoleCommand implements Command { event.getMessageEditor().getMessage( MessageEditor.MessageType.INFO, "commands.moderation.role.remove.success.title", - "✅", + "", "", "commands.moderation.role.remove.success.description", String.valueOf(event.getMessage().getMentionedRoles().size()), @@ -74,6 +73,9 @@ public class RoleCommand implements Command { .build()).queue(); } break; + default: + event.getHelpCommand().sendHelp(this, event); + break; } } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java index dea68a1..cb96e27 100644 --- a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java @@ -28,7 +28,8 @@ public class QueueCommand implements Command { } event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "commands.music.queue.success.title", "", - "commands.music.queue.success.description", builder.toString()).build()).queue(); + "commands.music.queue.success.description", builder.toString()) + .build()).queue(); } } From ef3aed7938f8aa901a50c98156dc9b9b2e39656d Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Tue, 31 Dec 2019 03:51:20 +0100 Subject: [PATCH 61/65] Screenshare improvement --- .../hadder/commands/misc/GitHubCommand.java | 9 ++++--- .../commands/misc/ScreenShareCommand.java | 25 +++++++------------ .../commands/moderation/RoleCommand.java | 3 +-- .../com/bbn/hadder/utils/MessageEditor.java | 2 -- .../Translations/Translations_en.properties | 4 ++- 5 files changed, 19 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java b/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java index 42fa95d..906798e 100644 --- a/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java +++ b/src/main/java/com/bbn/hadder/commands/misc/GitHubCommand.java @@ -67,12 +67,15 @@ public class GitHubCommand implements Command { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( MessageEditor.MessageType.ERROR, - "", + "commands.misc.github.api.error.title", "commands.misc.github.api.error.description") .build() ).queue(); } catch (JSONException e) { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, "","commands.misc.github.user.error.description").build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( + MessageEditor.MessageType.ERROR, + "commands.misc.github.user.error.title", + "commands.misc.github.user.error.description").build()).queue(); } } } else { @@ -99,7 +102,7 @@ public class GitHubCommand implements Command { @Override public String usage() { - return "[GH-name]"; + return "[GH name]"; } @Override diff --git a/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java b/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java index 07381f7..6692306 100644 --- a/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java +++ b/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java @@ -16,21 +16,15 @@ public class ScreenShareCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { if (args.length>0) { - if (args[0].matches("[0-9]*")&&args.length==1) { - for (VoiceChannel vc : event.getGuild().getVoiceChannels()) { - try { - if (vc.getIdLong() == Long.parseLong(args[0])) { - event.getChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.INFO, - "commands.misc.screenshare.success.title", "") - .setDescription("http://discordapp.com/channels/" + event.getGuild().getId() + "/" + vc.getId() + "/").build()).queue(); - return; - } - } catch (NumberFormatException e) { - event.getChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.misc.screenshare.id.error.title", "commands.misc.screenshare.id.error.description").build()).queue(); - event.getHelpCommand().sendHelp(this, event); - return; - } + if (args[0].matches("[0-9]*") && args.length==1 && args[0].length() == 18) { + if (event.getGuild().getVoiceChannelById(args[0]) != null) { + event.getChannel().sendMessage(event.getMessageEditor().getMessage( + MessageEditor.MessageType.INFO, + "commands.misc.screenshare.success.title", "") + .setDescription("http://discordapp.com/channels/" + event.getGuild().getId() + "/" + args[0] + "/").build()).queue(); + } else { + event.getChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.misc.screenshare.id.error.title", "commands.misc.screenshare.id.error.description").build()).queue(); + event.getHelpCommand().sendHelp(this, event); } } else { List vcs = event.getGuild().getVoiceChannelsByName(String.join(" ", args), true); @@ -48,7 +42,6 @@ public class ScreenShareCommand implements Command { event.getChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "commands.misc.screenshare.success.title", "") .setDescription("http://discordapp.com/channels/" + event.getGuild().getId() + "/" + vcs.get(i).getId() + "/").build()).queue(); } else { - event.getChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.misc.screenshare.number.error.title", "").build()).queue(); event.getHelpCommand().sendHelp(this, event); } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java index de04cfd..b5049ec 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/RoleCommand.java @@ -16,8 +16,7 @@ public class RoleCommand implements Command { public void executed(String[] args, CommandEvent event) { if (args.length > 0) { if (event.getGuild().getSelfMember().hasPermission(Permission.MANAGE_ROLES)) { - String action = args[0].toLowerCase(); - switch (action) { + switch (args[0].toLowerCase()) { case "add": if (event.getMessage().getMentionedMembers().size() > 0 && event.getMessage().getMentionedRoles().size() > 0) { for (Member member : event.getMessage().getMentionedMembers()) { diff --git a/src/main/java/com/bbn/hadder/utils/MessageEditor.java b/src/main/java/com/bbn/hadder/utils/MessageEditor.java index 81b94c2..47fc105 100644 --- a/src/main/java/com/bbn/hadder/utils/MessageEditor.java +++ b/src/main/java/com/bbn/hadder/utils/MessageEditor.java @@ -113,8 +113,6 @@ public class MessageEditor { return this.handle(rethink.getLanguage(user.getId()), string, extra, extra_two); } - - private String handle(String language_code, String string, String extra, String extra_two) { Locale locale = new Locale(language_code); ResourceBundle resourceBundle = ResourceBundle.getBundle("Translations/Translations", locale); diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index fa14672..f958c88 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -70,8 +70,10 @@ commands.misc.github.success.repositories = Public repositories commands.misc.github.success.gists = Public gists commands.misc.github.success.followers = Followers commands.misc.github.success.following = Following +commands.misc.github.api.error.title = API error commands.misc.github.api.error.description = The GitHub API might be down at the moment\! -commands.misc.github.user.error.description = This user does not exist\! +commands.misc.github.user.error.title = User doesn't exist +commands.misc.github.user.error.description = I can not find a user named like this\! commands.misc.github.connect.title = Connect your GH account commands.misc.github.connect.description = [Please connect your GitHub account here]%extra% commands.misc.github.help.description = Displays information about a GitHub user profile. From 61ad916579ab51a087e43bc5188e89785546d7fc Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Tue, 31 Dec 2019 12:38:07 +0100 Subject: [PATCH 62/65] Gson is not used --- pom.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pom.xml b/pom.xml index 127cdcc..920716f 100644 --- a/pom.xml +++ b/pom.xml @@ -31,11 +31,6 @@ rethinkdb-driver 2.3.3 - - com.google.code.gson - gson - 2.8.6 - org.slf4j slf4j-simple From 9e66fa1a3b9d960bb1a896dc44fc7a0fdd439611 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Tue, 31 Dec 2019 13:38:58 +0100 Subject: [PATCH 63/65] Volume command --- src/main/java/com/bbn/hadder/Hadder.java | 1 + .../hadder/commands/music/VolumeCommand.java | 61 +++++++++++++++++++ .../Translations/Translations_en.properties | 18 ++---- 3 files changed, 66 insertions(+), 14 deletions(-) create mode 100644 src/main/java/com/bbn/hadder/commands/music/VolumeCommand.java diff --git a/src/main/java/com/bbn/hadder/Hadder.java b/src/main/java/com/bbn/hadder/Hadder.java index 4169459..d98da1a 100644 --- a/src/main/java/com/bbn/hadder/Hadder.java +++ b/src/main/java/com/bbn/hadder/Hadder.java @@ -97,6 +97,7 @@ public class Hadder { new InfoCommand(), new SkipCommand(), new EditRulesCommand(), + new VolumeCommand(), new StopCommand()), config, helpCommand); builder.addEventListeners( diff --git a/src/main/java/com/bbn/hadder/commands/music/VolumeCommand.java b/src/main/java/com/bbn/hadder/commands/music/VolumeCommand.java new file mode 100644 index 0000000..b0391b9 --- /dev/null +++ b/src/main/java/com/bbn/hadder/commands/music/VolumeCommand.java @@ -0,0 +1,61 @@ +package com.bbn.hadder.commands.music; + +import com.bbn.hadder.commands.Command; +import com.bbn.hadder.commands.CommandEvent; +import com.bbn.hadder.utils.MessageEditor; + +/** + * @author Skidder / GregTCLTK + */ + +public class VolumeCommand implements Command { + + @Override + public void executed(String[] args, CommandEvent event) { + if (args.length > 0) { + if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() != null) { + try { + int volume = Integer.parseInt(args[0]); + if (volume < 200 && volume > 0 || event.getConfig().getOwners().contains(event.getAuthor().getId())) { + event.getAudioManager().getPlayer(event.getGuild()).setVolume(volume); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, + "commands.music.volume.success.title", "", + "commands.music.volume.success.description", String.valueOf(volume)).build()).queue(); + } else { + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, + "commands.music.volume.error.int.title", + "commands.music.volume.error.int.description").build()).queue(); + } + } catch (NumberFormatException e) { + event.getHelpCommand().sendHelp(this, event); + } catch (Exception e) { + e.printStackTrace(); + } + } else { + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, + "commands.music.info.error.title", + "commands.music.info.error.description").build()).queue(); + } + } else event.getHelpCommand().sendHelp(this, event); + } + + @Override + public String[] labels() { + return new String[]{"volume"}; + } + + @Override + public String description() { + return "Change the volume of the music."; + } + + @Override + public String usage() { + return "[New volume]"; + } + + @Override + public String example() { + return "100"; + } +} diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index f958c88..c46cbe0 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -4,20 +4,6 @@ Hadder = Hadder -user = <@User> -searchterm = -username = -number = /all -prefix = -userprefix = -vc-name/id = -user+nickname = <@user> -region = -guildid = -content = -song = -user/id= [@User]/[ID] - error = Error none = None success\! = Success\! @@ -221,6 +207,10 @@ commands.music.queue.help.description = Shows the music queue commands.music.skip.success.title = Successfully skipped commands.music.skip.success.description = I successfully skipped to the next song commands.music.skip.help.description = Skips the currently playing song +commands.music.volume.success.title = Successfully set +commands.music.volume.success.description = I successfully set the new volume to %extra% +commands.music.volume.error.int.title = Invalid number +commands.music.volume.error.int.description = The volume have to be between 1 and 200 commands.nsfw.gif.error.title = GIF not showing? Click here commands.nsfw.img.error.title = Image not showing? Click here From 78b8a51a185f789dc83b1574b35c669c8aebd5ca Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Tue, 31 Dec 2019 13:49:35 +0100 Subject: [PATCH 64/65] Warning -> Error --- .../com/bbn/hadder/commands/misc/ScreenShareCommand.java | 4 ++-- .../com/bbn/hadder/commands/moderation/BanCommand.java | 8 ++++---- .../com/bbn/hadder/commands/moderation/ClearCommand.java | 4 ++-- .../hadder/commands/moderation/InviteDetectCommand.java | 4 ++-- .../com/bbn/hadder/commands/moderation/KickCommand.java | 8 ++++---- .../com/bbn/hadder/commands/moderation/PrefixCommand.java | 1 - .../com/bbn/hadder/commands/moderation/RulesCommand.java | 8 ++++---- .../java/com/bbn/hadder/commands/music/JoinCommand.java | 2 +- .../java/com/bbn/hadder/commands/music/LeaveCommand.java | 2 +- .../java/com/bbn/hadder/commands/music/PlayCommand.java | 2 +- .../java/com/bbn/hadder/commands/music/QueueCommand.java | 2 +- .../com/bbn/hadder/commands/owner/GuildLeaveCommand.java | 2 +- .../resources/Translations/Translations_en.properties | 1 + 13 files changed, 24 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java b/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java index 6692306..8f13cc5 100644 --- a/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java +++ b/src/main/java/com/bbn/hadder/commands/misc/ScreenShareCommand.java @@ -29,12 +29,12 @@ public class ScreenShareCommand implements Command { } else { List vcs = event.getGuild().getVoiceChannelsByName(String.join(" ", args), true); if (vcs.size() > 1) { - EmbedBuilder eb = event.getMessageEditor().getMessage(MessageType.ERROR, "commands.misc.screenshare.channel.error.title", "commands.misc.screenshare.channel.error.description"); + EmbedBuilder eb = event.getMessageEditor().getMessage(MessageType.WARNING, "commands.misc.screenshare.channel.error.title", "commands.misc.screenshare.channel.error.description"); for (int i = 0; i < vcs.size(); i++) { VoiceChannel voiceChannel = vcs.get(i); eb.addField(i + ": " + voiceChannel.getName(), voiceChannel.getId(), false); } - event.getChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING).build()).queue(); + event.getChannel().sendMessage(eb.build()).queue(); new EventWaiter().newOnMessageEventWaiter(msgevent -> { try { int i = Integer.parseInt(msgevent.getMessage().getContentRaw()); diff --git a/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java index a6addca..98feb04 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/BanCommand.java @@ -35,14 +35,14 @@ public class BanCommand implements Command { } else { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.ban.error.title", "commands.moderation.ban.myself.error.description").build()).queue(); } } else { event.getTextChannel().sendMessage (event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.ban.error.title", "commands.moderation.ban.yourself.error.description").build()).queue(); } @@ -61,13 +61,13 @@ public class BanCommand implements Command { } else { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.ban.error.title", "commands.moderation.ban.myself.error.description").build()).queue(); } } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.ban.error.title", "commands.moderation.ban.yourself.error.description").build()).queue(); } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java index 1bcb4c5..0dbf1da 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/ClearCommand.java @@ -45,7 +45,7 @@ public class ClearCommand implements Command { try { int nbToDelete = Integer.parseInt(args[0]); if (nbToDelete < 1 || nbToDelete > 99) { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, "", "commands.moderation.clear.number.error.description").build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.moderation.clear.number.error.title", "commands.moderation.clear.number.error.description").build()).queue(); } else { List history = event.getTextChannel().getHistory().retrievePast(nbToDelete + 1).complete(); List msgToDelete = new ArrayList<>(history); @@ -73,7 +73,7 @@ public class ClearCommand implements Command { } catch (NumberFormatException e) { event.getHelpCommand().sendHelp(this, event); } catch (IllegalArgumentException e) { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, "commands.moderation.clear.message.error.title", "commands.moderation.clear.message.error.description") + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.moderation.clear.message.error.title", "commands.moderation.clear.message.error.description") .build()).queue(); } } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java index fb3c7a1..a3b03b0 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java @@ -29,7 +29,7 @@ public class InviteDetectCommand implements Command { .build()).queue(); } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.invitedetect.activate.error.title", "commands.moderation.invitedetect.activate.error.description") .build()).queue(); @@ -46,7 +46,7 @@ public class InviteDetectCommand implements Command { .build()).queue(); } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.invitedetect.deactivate.error.title", "commands.moderation.invitedetect.deactivate.error.description") .build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java index 84f8dcf..2fe1b53 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/KickCommand.java @@ -35,12 +35,12 @@ public class KickCommand implements Command { } else { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.kick.error.title", "commands.moderation.kick.myself.error.description").build()).queue(); } } else { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, "commands.moderation.kick.error.title", "commands.moderation.kick.yourself.error.description").build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.moderation.kick.error.title", "commands.moderation.kick.yourself.error.description").build()).queue(); } } else if (event.getMessage().getMentionedMembers().size() == 0) { event.getHelpCommand().sendHelp(this, event); @@ -55,10 +55,10 @@ public class KickCommand implements Command { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue(); } } else { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, "commands.moderation.kick.error.title", "commands.moderation.kick.myself.error.description").build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.moderation.kick.error.title", "commands.moderation.kick.myself.error.description").build()).queue(); } } else { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, "commands.moderation.kick.error.title", "commands.moderation.kick.yourself.error.description").build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.moderation.kick.error.title", "commands.moderation.kick.yourself.error.description").build()).queue(); } } event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "commands.moderation.kick.success.title", "✅", "commands.moderation.kick.masskick.success.description", String.valueOf(event.getMessage().getMentionedMembers().size())).build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java index ea643f2..153e64f 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/PrefixCommand.java @@ -13,7 +13,6 @@ public class PrefixCommand implements Command { public void executed(String[] args, CommandEvent event) { if (args.length == 1) { if (!args[0].contains("\"")) { - event.getRethink().setGuildPrefix(args[0], event.getGuild().getId()); event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( MessageEditor.MessageType.INFO, diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java index 7566d92..2ce9a4e 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/RulesCommand.java @@ -88,7 +88,7 @@ public class RulesCommand implements Command { } else { event3.getChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.rules.role.error.title", "commands.moderation.rules.role.error.description") .build()).queue(); @@ -104,7 +104,7 @@ public class RulesCommand implements Command { } else { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.rules.guild.error.title", "commands.moderation.rules.guild.error.description") .build()).queue(); @@ -160,7 +160,7 @@ public class RulesCommand implements Command { } else { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.rules.emote.error.equal.title", "commands.moderation.rules.emote.error.equal.description") .build()).queue(); @@ -205,7 +205,7 @@ public class RulesCommand implements Command { } else { event.getTextChannel().sendMessage( event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.moderation.rules.emote.error.equal.title", "commands.moderation.rules.emote.error.equal.description") .build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java b/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java index e9cc692..e0b2975 100644 --- a/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/JoinCommand.java @@ -55,7 +55,7 @@ public class JoinCommand implements Command { } } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.music.join.error.channel.title", "commands.music.join.error.channel.description") .build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java b/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java index 351d6d2..ec9043c 100644 --- a/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/LeaveCommand.java @@ -21,7 +21,7 @@ public class LeaveCommand implements Command { .build()).queue(); } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.music.leave.error.tile", "commands.music.leave.error.description") .build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java b/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java index 4ac8e80..299d222 100644 --- a/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/PlayCommand.java @@ -32,7 +32,7 @@ public class PlayCommand implements Command { } } else { event.getTextChannel().sendMessage(event.getMessageEditor().getMessage( - MessageEditor.MessageType.WARNING, + MessageEditor.MessageType.ERROR, "commands.music.join.error.channel.title", "commands.music.join.error.channel.description") .build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java index cb96e27..c3f7140 100644 --- a/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/QueueCommand.java @@ -16,7 +16,7 @@ public class QueueCommand implements Command { @Override public void executed(String[] args, CommandEvent event) { if (!event.getAudioManager().hasPlayer(event.getGuild()) || event.getAudioManager().getTrackManager(event.getGuild()).getQueuedTracks().isEmpty()) { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.music.queue.error.title", "commands.music.queue.error.description" ).build()).queue(); diff --git a/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java b/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java index a38860f..458fc12 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/GuildLeaveCommand.java @@ -27,7 +27,7 @@ public class GuildLeaveCommand implements Command { .build()) .queue(); } catch (Exception e) { - event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.WARNING, "commands.owner.guildleave.error.title", "", "commands.owner.guildleave.help.description", guild.getName()).build()).queue(); + event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, "commands.owner.guildleave.error.title", "", "commands.owner.guildleave.help.description", guild.getName()).build()).queue(); } } else { event.getHelpCommand().sendHelp(this, event); diff --git a/src/main/resources/Translations/Translations_en.properties b/src/main/resources/Translations/Translations_en.properties index c46cbe0..133e2e9 100644 --- a/src/main/resources/Translations/Translations_en.properties +++ b/src/main/resources/Translations/Translations_en.properties @@ -83,6 +83,7 @@ commands.moderation.ban.massban.success.description = I successfully banned %ext commands.moderation.ban.help.description = Bans one or more users from the server. commands.moderation.lear.all.success.title = Successfully deleted commands.moderation.lear.all.success.description = I successfully deleted %extra% messages. +commands.moderation.clear.number.error.title = Invalid number commands.moderation.clear.number.error.description = You have to choose a number between 1 and 99\! commands.moderation.clear.success.title = Successfully cleared commands.moderation.clear.success.description.singular = Successfully deleted one message. From b77e99fc7dd6dc6ba408cba3cf437241c553f929 Mon Sep 17 00:00:00 2001 From: GregTCLTK Date: Tue, 31 Dec 2019 14:47:11 +0100 Subject: [PATCH 65/65] Unused imports --- src/main/java/com/bbn/hadder/commands/general/HelpCommand.java | 1 - src/main/java/com/bbn/hadder/commands/owner/TestCommand.java | 1 - src/main/java/com/bbn/hadder/utils/MessageEditor.java | 1 - 3 files changed, 3 deletions(-) diff --git a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java index 529cdf7..8da4db5 100644 --- a/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java +++ b/src/main/java/com/bbn/hadder/commands/general/HelpCommand.java @@ -9,7 +9,6 @@ import net.dv8tion.jda.api.Permission; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; -import java.util.Optional; public class HelpCommand implements Command { diff --git a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java index 64633f2..3473085 100644 --- a/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java +++ b/src/main/java/com/bbn/hadder/commands/owner/TestCommand.java @@ -2,7 +2,6 @@ package com.bbn.hadder.commands.owner; import com.bbn.hadder.commands.Command; import com.bbn.hadder.commands.CommandEvent; -import com.bbn.hadder.commands.general.HelpCommand; import com.bbn.hadder.utils.MessageEditor.MessageType; /* diff --git a/src/main/java/com/bbn/hadder/utils/MessageEditor.java b/src/main/java/com/bbn/hadder/utils/MessageEditor.java index 47fc105..1d39039 100644 --- a/src/main/java/com/bbn/hadder/utils/MessageEditor.java +++ b/src/main/java/com/bbn/hadder/utils/MessageEditor.java @@ -1,7 +1,6 @@ package com.bbn.hadder.utils; import com.bbn.hadder.Rethink; -import com.bbn.hadder.commands.CommandEvent; import net.dv8tion.jda.api.EmbedBuilder; import net.dv8tion.jda.api.entities.User;