Update play command.

playlists
Nekojimi 3 years ago
parent a451369c92
commit 152afe4813
  1. 4
      src/main/java/moe/nekojimi/chords/commands/PlayCommand.java

@ -51,7 +51,7 @@ public class PlayCommand extends Command
{ {
final URL url = new URL(invocation.getArgs().get(0)); final URL url = new URL(invocation.getArgs().get(0));
request.setUrl(url); request.setUrl(url);
bot.queueDownload(request); bot.queueDownload(request, bot.getQueueManager());
} catch (MalformedURLException mux) } catch (MalformedURLException mux)
{ {
@ -103,7 +103,7 @@ public class PlayCommand extends Command
if (results.get(0).getScore() >= SEARCH_SCORE_THRESHOLD_AUTOPLAY) if (results.get(0).getScore() >= SEARCH_SCORE_THRESHOLD_AUTOPLAY)
{ {
request.setResult(results.get(0)); request.setResult(results.get(0));
bot.queueDownload(request); bot.queueDownload(request, bot.getQueueManager());
return; return;
} }

Loading…
Cancel
Save