Skip to content

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rettichlp committed Aug 17, 2024
2 parents b77df50 + 2309fbd commit e788637
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>de.rettichlp</groupId>
<artifactId>shantybot</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
<packaging>jar</packaging>

<name>ShantyBot</name>
Expand Down Expand Up @@ -67,7 +67,7 @@
<version>5.0.2</version>
</dependency>

<!-- https://github.com/lavalink-devs/lavaplayerk -->
<!-- https://github.com/lavalink-devs/lavaplayer -->
<dependency>
<groupId>dev.arbjerg</groupId>
<artifactId>lavaplayer</artifactId>
Expand All @@ -78,7 +78,7 @@
<dependency>
<groupId>dev.lavalink.youtube</groupId>
<artifactId>common</artifactId>
<version>1.5.2</version>
<version>1.6.0</version>
</dependency>
</dependencies>

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/de/rettichlp/shantybot/ShantyBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,9 @@ private static void startDiscordBot() throws InterruptedException {
).queue());

audioPlayerManager = new AudioPlayerManager();

ofNullable(discordBotProperties.getGuild())
.ifPresentOrElse(guild -> log.info("Discord bot connected to the guild requested by the properties: {}", guild.getName()),
() -> log.error("Discord bot cannot create connection to guild requested by the properties"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;
import dev.lavalink.youtube.YoutubeAudioSourceManager;
import lombok.extern.log4j.Log4j2;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.MessageEmbed;
Expand All @@ -31,6 +32,7 @@
import static de.rettichlp.shantybot.common.services.UtilService.sendSelfDeletingMessage;
import static java.util.Objects.requireNonNull;

@Log4j2
public class AudioPlayerManager {

private final Map<Long, GuildMusicManager> musicManagers;
Expand Down Expand Up @@ -117,6 +119,7 @@ public void noMatches() {
@Override
public void loadFailed(FriendlyException e) {
sendSelfDeletingMessage(event, "Fehler beim Laden des Songs!");
log.error("Fehler beim Laden des Songs!", e);
}
});
}
Expand Down

0 comments on commit e788637

Please sign in to comment.