Skip to content

Commit f25c97f

Browse files
authored
Merge pull request #424 from KittyBot-Org/development
spotify playlist bug fix
2 parents 83ad187 + fa0c200 commit f25c97f

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

build.gradle

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java'
33
id 'application'
44
id 'com.github.johnrengelman.shadow' version '7.0.0'
5-
id 'nu.studer.jooq' version '6.0'
5+
id 'nu.studer.jooq' version '6.0.1'
66
}
77

88
group 'de.kittybot'
@@ -17,12 +17,12 @@ repositories {
1717

1818
dependencies {
1919
// discord/jda related
20-
implementation('net.dv8tion:JDA:4.3.0_306') {
20+
implementation('net.dv8tion:JDA:4.3.0_323') {
2121
exclude group: 'club.minnced', module: 'opus-java'
2222
}
2323
implementation 'com.jagrosh:jda-utilities:3.0.5'
2424
implementation 'club.minnced:discord-webhooks:0.5.8'
25-
implementation 'dev.mlnr:BotListHandler-jda:2.0.0_8'
25+
implementation 'dev.mlnr:BotListHandler-jda:2.0.0_11'
2626

2727
// audio
2828
implementation('com.github.KittyBot-Org:Lavalink-Client:d48f1a6') {
@@ -33,36 +33,36 @@ dependencies {
3333

3434
// database
3535
implementation 'com.zaxxer:HikariCP:5.0.0'
36-
implementation 'org.jooq:jooq:3.15.1'
36+
implementation 'org.jooq:jooq:3.15.2'
3737
implementation 'org.postgresql:postgresql:42.2.23'
3838
jooqGenerator 'org.postgresql:postgresql:42.2.23'
3939

4040
// logging
41-
implementation 'ch.qos.logback:logback-classic:1.3.0-alpha6'
42-
implementation 'io.sentry:sentry-logback:5.0.1'
41+
implementation 'ch.qos.logback:logback-classic:1.3.0-alpha10'
42+
implementation 'io.sentry:sentry-logback:5.1.2'
4343

4444
// eval
45-
implementation 'org.codehaus.groovy:groovy-jsr223:3.0.8'
45+
implementation 'org.codehaus.groovy:groovy-jsr223:3.0.9'
4646

4747
// jjwt
4848
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
4949
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2'
5050
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2'
5151

5252
// Prometheus
53-
implementation 'io.prometheus:simpleclient:0.11.0'
54-
implementation 'io.prometheus:simpleclient_hotspot:0.11.0'
55-
implementation 'io.prometheus:simpleclient_httpserver:0.11.0'
53+
implementation 'io.prometheus:simpleclient:0.12.0'
54+
implementation 'io.prometheus:simpleclient_hotspot:0.12.0'
55+
implementation 'io.prometheus:simpleclient_httpserver:0.12.0'
5656

5757
// other
58-
implementation 'io.javalin:javalin:3.13.10'
59-
implementation 'io.github.classgraph:classgraph:4.8.111'
58+
implementation 'io.javalin:javalin:3.13.11'
59+
implementation 'io.github.classgraph:classgraph:4.8.115'
6060
implementation 'com.github.ben-manes.caffeine:caffeine:3.0.3'
6161
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
6262
}
6363

6464
jooq {
65-
version = '3.14.12'
65+
version = '3.15.2'
6666
configurations {
6767
main {
6868
generateSchemaSourceOnCompilation = false

src/main/java/de/kittybot/kittybot/main/KittyBot.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ public KittyBot() throws IOException, MissingConfigValuesException, LoginExcepti
3232
var modules = new Modules(this);
3333
var botListHandler = new BLHBuilder()
3434
.setUnavailableEventsEnabled(false)
35-
.setDevModePredicate(jda -> Environment.is(Environment.DEVELOPMENT))
35+
.setDevModePredicate(id -> Environment.is(Environment.DEVELOPMENT))
3636
.setSuccessLoggingEnabled(false)
37+
.setErrorLoggingThreshold(2)
3738
.addBotList(BotList.TOP_GG, Config.TOP_GG_TOKEN)
3839
.addBotList(BotList.DBOATS, Config.DISCORD_BOATS_TOKEN)
3940
.addBotList(BotList.DISCORDLIST_SPACE, Config.BOTLIST_SPACE_TOKEN)
41+
.addBotList(BotList.DISCORDS, Config.BOTS_FOR_DISCORD_TOKEN)
4042
.addBotList(BotList.DSERVICES, Config.DISCORD_SERVICES_TOKEN)
4143
.addBotList(BotList.DBL, Config.DISCORD_BOT_LIST_TOKEN)
4244
.addBotList(BotList.DEL, Config.DISCORD_EXTREME_LIST_TOKEN)

src/main/java/de/kittybot/kittybot/modules/MusicModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void destroy(MusicManager musicManager, String reason){
194194
if(channel == null || !channel.canTalk()){
195195
return;
196196
}
197-
channel.sendMessage(new EmbedBuilder().setColor(Color.RED).setDescription(reason).setTimestamp(Instant.now()).build()).queue();
197+
channel.sendMessageEmbeds(new EmbedBuilder().setColor(Color.RED).setDescription(reason).setTimestamp(Instant.now()).build()).queue();
198198
}
199199
}
200200

src/main/java/de/kittybot/kittybot/modules/SpotifyModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private void loadAlbum(String id, GuildInteraction ia, MusicManager manager){
7373
var items = tracks.getItems();
7474
var toLoad = new ArrayList<String>();
7575
for(var track : items){
76-
toLoad.add("ytsearch:" + track.getArtists()[0].getName() + " " + track.getName());
76+
toLoad.add(track.getArtists()[0].getName() + " " + track.getName());
7777
}
7878
loadTracks(id, ia, manager, toLoad);
7979
}).exceptionally(throwable -> {
@@ -97,7 +97,7 @@ private void loadPlaylist(String id, GuildInteraction ia, MusicManager manager){
9797
var toLoad = new ArrayList<String>();
9898
for(var item : items){
9999
var track = (Track) item.getTrack();
100-
toLoad.add("ytsearch:" + track.getArtists()[0].getName() + " " + track.getName());
100+
toLoad.add(track.getArtists()[0].getName() + " " + track.getName());
101101
}
102102
loadTracks(id, ia, manager, toLoad);
103103
}).exceptionally(throwable -> {

0 commit comments

Comments
 (0)