Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
861b3f90e7 | ||
|
|
b7d19b6d56 |
No files matched your search
@@ -38,7 +38,8 @@ public record DatabaseConfig(String url, String user, String password) {
|
|||||||
String dbPass = settings.get("MYSQL_PASSWORD", "");
|
String dbPass = settings.get("MYSQL_PASSWORD", "");
|
||||||
String dbHost = settings.get("MYSQL_HOST", "localhost");
|
String dbHost = settings.get("MYSQL_HOST", "localhost");
|
||||||
String dbPort = settings.get("MYSQL_PORT", "3306");
|
String dbPort = settings.get("MYSQL_PORT", "3306");
|
||||||
return new DatabaseConfig(String.format("jdbc:mysql://%s:%s/%s", dbHost, dbPort, dbName), dbUser, dbPass);
|
String url = String.format("jdbc:mysql://%s:%s/%s?createDatabaseIfNotExist=true", dbHost, dbPort, dbName);
|
||||||
|
return new DatabaseConfig(url, dbUser, dbPass);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -221,7 +221,6 @@ public final class MusicRoutes {
|
|||||||
private static void resumePlayback(Supplier<JDA> jdaSupplier, MusicService musicService, Context ctx) {
|
private static void resumePlayback(Supplier<JDA> jdaSupplier, MusicService musicService, Context ctx) {
|
||||||
MusicManager manager = manager(jdaSupplier, musicService, ctx);
|
MusicManager manager = manager(jdaSupplier, musicService, ctx);
|
||||||
manager.unpauseTrack();
|
manager.unpauseTrack();
|
||||||
announce(manager, "Resuming current track");
|
|
||||||
ctx.json(Map.of("status", "ok", "message", "Resuming current track"));
|
ctx.json(Map.of("status", "ok", "message", "Resuming current track"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -347,7 +346,7 @@ public final class MusicRoutes {
|
|||||||
MusicManager manager = musicService.get(guild);
|
MusicManager manager = musicService.get(guild);
|
||||||
String userId = ctx.pathParam("userId");
|
String userId = ctx.pathParam("userId");
|
||||||
|
|
||||||
CacheOrFetch.<Member>resolve(
|
CacheOrFetch.resolve(
|
||||||
ctx,
|
ctx,
|
||||||
() -> guild.getMemberById(userId),
|
() -> guild.getMemberById(userId),
|
||||||
() -> guild.retrieveMemberById(userId),
|
() -> guild.retrieveMemberById(userId),
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class VoteSkipService {
|
|||||||
|
|
||||||
TrackInfo info = queueManager.peekHeadOfQueue();
|
TrackInfo info = queueManager.peekHeadOfQueue();
|
||||||
if (info == null) {
|
if (info == null) {
|
||||||
return QueueActionResult.warn("Queue is empty");
|
return QueueActionResult.warn("The queue is empty, you can't cast a vote on an empty queue");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Minus the bot itself
|
// Minus the bot itself
|
||||||
|
|||||||
Reference in new issue
Block a user