diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index aa30f8c..1a0eb28 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -32,13 +32,15 @@ jobs: local: ./target/Hadder-Build.jar remote: /home/Hadder-Build.jar host: ${{ secrets.HOST }} - privateKey: ${{ secrets.PK }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} - name: executing remote ssh commands using password uses: appleboy/ssh-action@master with: host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} port: ${{ secrets.PORT }} - key: ${{ secrets.PK }} script: /home/deploy.sh - name: Send Webhook Notification if: always() diff --git a/pom.xml b/pom.xml index fd4e686..185c8ee 100644 --- a/pom.xml +++ b/pom.xml @@ -69,7 +69,7 @@ net.dv8tion JDA - 4.2.0_194 + 4.2.0_204 org.json @@ -89,7 +89,7 @@ club.minnced discord-webhooks - 0.3.2 + 0.4.1 org.kohsuke @@ -149,7 +149,7 @@ maven-project-info-reports-plugin - 3.1.0 + 3.1.1 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 bd1e4cd..99f5f48 100644 --- a/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java +++ b/src/main/java/com/bbn/hadder/commands/moderation/InviteDetectCommand.java @@ -68,6 +68,7 @@ public class InviteDetectCommand implements Command { break; default: e.getHelpCommand().sendHelp(this, e); + break; } } else e.getHelpCommand().sendHelp(this, e); } diff --git a/src/main/java/com/bbn/hadder/commands/moderation/RoleAssignmentCommand.java b/src/main/java/com/bbn/hadder/commands/moderation/RoleAssignmentCommand.java deleted file mode 100644 index 601b6cf..0000000 --- a/src/main/java/com/bbn/hadder/commands/moderation/RoleAssignmentCommand.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019-2020 GregTCLTK and Schlauer-Hax - * - * Licensed under the GNU Affero General Public License, Version 3.0; - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.gnu.org/licenses/agpl-3.0.en.html - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.bbn.hadder.commands.moderation; - -import com.bbn.hadder.commands.Command; -import com.bbn.hadder.commands.CommandEvent; -import com.bbn.hadder.core.Perm; -import com.bbn.hadder.core.Perms; -import com.bbn.hadder.utils.MessageEditor; -import net.dv8tion.jda.api.Permission; - -@Perms(Perm.MANAGE_ROLES) -public class RoleAssignmentCommand implements Command { - - @Override - public void executed(String[] args, CommandEvent e) { - //TODO: THIS LOL - if (e.getGuild().getSelfMember().hasPermission(Permission.MANAGE_ROLES)) { - - } else - e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.NO_SELF_PERMISSION).build()).queue(); - } - - @Override - public String[] labels() { - return new String[0]; - } - - @Override - public String description() { - return null; - } - - @Override - public String usage() { - 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 f7bd31c..5695395 100644 --- a/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java +++ b/src/main/java/com/bbn/hadder/commands/music/SkipCommand.java @@ -32,7 +32,12 @@ public class SkipCommand implements Command { "commands.music.skip.success.title", "commands.music.skip.success.description").build()).queue(); } else { - e.getTextChannel().sendMessage("Get rekt lol Mach Loop aus noob").queue(); + e.getAudioManager().getTrackManager(e.getGuild()).setLoop(false); + e.getAudioManager().forceSkipTrack(e); + e.getAudioManager().getTrackManager(e.getGuild()).setLoop(true); + e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, + "commands.music.skip.success.title", + "commands.music.skip.success.description").build()).queue(); } } else { e.getTextChannel().sendMessage(e.getMessageEditor().getMessage(MessageEditor.MessageType.ERROR, diff --git a/src/main/resources/Translations/Translations_de.properties b/src/main/resources/Translations/Translations_de.properties index 1f826d7..8d78c71 100644 --- a/src/main/resources/Translations/Translations_de.properties +++ b/src/main/resources/Translations/Translations_de.properties @@ -23,7 +23,7 @@ success\! = Erfolgreich\! commands.fun.avatar.success.title = Avatar von %extra% commands.fun.avatar.error.title = Benutzer nicht gefunden commands.fun.avatar.error.description = Ich kann keinen Benutzer mit dieser ID finden\! -commands.fun.avatar.help.description = Sendet das Avatar des angegebenen Mitglieds. +commands.fun.avatar.help.description = Sends the avatar of the specified Member. commands.fun.gif.error.description = Bitte versuche es mit einem anderen Begriff erneut. commands.fun.gif.help.description = Sucht nach einem GIF auf Giphy. commands.fun.meme.success.title = Dein zufälliges Meme\: @@ -172,17 +172,17 @@ commands.moderation.rules.role.description = Die Regeln wurden erfolgreich festg commands.moderation.rules.role.error.title = Rolle existiert nicht commands.moderation.rules.role.error.description = Die angegebene Rolle existiert auf diesem Server nicht. commands.moderation.rules.role.permission.error.title = Keine Berechtigung -commands.moderation.rules.role.permission.error.description = Du kannst diese Rolle nicht auswählen, da du keinen Zugriff auf sie hast. +commands.moderation.rules.role.permission.error.description = Du kannst diese Rolle nicht auswählen, weil du keinen Zugriff auf sie hast. commands.moderation.rules.guild.error.title = Falsche Guild -commands.moderation.rules.guild.error.description = Der angegebene Kanal muss sich auf diesem Server befinden\! +commands.moderation.rules.guild.error.description = Der erwähnte Kanal muss auf diesem Server sein\! commands.moderation.rules.emote.accept.title = Benutzerdefiniertes Zustimmungsemote commands.moderation.rules.emote.accept.description = The role has been successfully set to %extra%. Now send me the emote on which your user should react to to get verified. commands.moderation.rules.emote.decline.title = Benutzerdefiniertes Ablehnungsemote commands.moderation.rules.emote.decline.description = The first emote has been successfully set to %extra%. Please send me now the decline emote. -commands.moderation.rules.emote.error.access.description = Ich kann auf benutzerdefinierten Emotes nicht zugreifen. -commands.moderation.rules.emote.error.equal.title = Die Emotes sind gleich +commands.moderation.rules.emote.error.access.description = Ich kann auf die benutzerdefinierten Emote(s) nicht zugreifen. +commands.moderation.rules.emote.error.equal.title = Emotes sind gleich commands.moderation.rules.emote.error.equal.description = Die zwei angegebenen Emotes sind gleich. -commands.moderation.rules.emoji.decline.description = Das erste Emote wurde erfolgreich festgelegt. Bitte sende mir nun das Ablehnungsemote. +commands.moderation.rules.emoji.decline.description = Das erste Emote wurde erfolgreich festgelegt. Bitte sende mir jetzt das Ablehnungsemote. commands.moderation.rules.emoji.error.description = Das angegebene Emote kann nicht verwendet werden. commands.moderation.rules.success.title = Regeln erfolgreich festgelegt commands.moderation.rules.success.description = Ich habe die Regeln erfolgreich in %extra% gesendet. @@ -330,4 +330,4 @@ commands.settings.language.error.description = Please choose one of the followin commands.settings.language.help.description = Führt den angegebenen Code aus. commands.settings.prefix.success.title = Prefix erfolgreich gesetzt commands.settings.prefix.success.description = Ich habe erfolgreich den neuen Prefix für dich auf `%extra% `gesetzt. -commands.settings.prefix.help.description = Legt einen neuen Prefix fest. +commands.settings.prefix.help.description = Legt einen neuen Prefix fest. \ No newline at end of file