=Work on Music command
This commit is contained in:
@@ -9,6 +9,7 @@ import dataStructures.KittyRole;
|
||||
import dataStructures.KittyUser;
|
||||
import dataStructures.UserInput;
|
||||
import network.NetworkYoutube;
|
||||
import utils.audio.AudioController;
|
||||
|
||||
public class SubCommandAddTrack extends SubCommand
|
||||
{
|
||||
@@ -16,12 +17,16 @@ public class SubCommandAddTrack extends SubCommand
|
||||
public SubCommandAddTrack(KittyRole level, KittyRating rating) { super(level, rating); }
|
||||
|
||||
NetworkYoutube YT = new NetworkYoutube();
|
||||
AudioController ac = new AudioController();
|
||||
|
||||
@Override
|
||||
public SubCommandFormattable OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input)
|
||||
{
|
||||
//Get track from Youtube
|
||||
String video = YT.getYT(input.args);
|
||||
ac.loadAndPlay(video, guild);
|
||||
|
||||
String response = YT.getYT(input.args);
|
||||
return new SubCommandFormattable(response);
|
||||
System.out.println(ac.response);
|
||||
return new SubCommandFormattable(video);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user