gitflow-hotfix-stash: slowmerge
This commit is contained in:
@@ -2,6 +2,7 @@ package commands.music;
|
||||
|
||||
import core.Command;
|
||||
import core.LocStrings;
|
||||
import core.SubCommandFormattable;
|
||||
import core.SubCommandFramework;
|
||||
import dataStructures.*;
|
||||
|
||||
@@ -9,7 +10,7 @@ public class CommandMusicMain extends Command
|
||||
{
|
||||
SubCommandFramework framework = new SubCommandFramework();
|
||||
public CommandMusicMain(KittyRole level, KittyRating rating)
|
||||
{
|
||||
{
|
||||
super(level, rating);
|
||||
framework.addCommand("join", new SubCommandJoin(KittyRole.General, KittyRating.Safe));
|
||||
framework.addCommand("leave", new SubCommandLeave(KittyRole.General, KittyRating.Safe));
|
||||
@@ -22,6 +23,8 @@ public class CommandMusicMain extends Command
|
||||
@Override
|
||||
public void onRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
{
|
||||
framework.run(guild, channel, user, input).Call(res);
|
||||
SubCommandFormattable scf = framework.run(guild, channel, user, input);
|
||||
System.out.println("SCF: " + scf.resString);
|
||||
scf.Call(res);
|
||||
}
|
||||
}
|
||||
@@ -25,8 +25,8 @@ public class SubCommandAddTrack extends SubCommand
|
||||
//Get track from Youtube
|
||||
String video = YT.getYT(input.args);
|
||||
ac.loadAndPlay(video, guild);
|
||||
System.out.println("Internal: " + ac.response);
|
||||
|
||||
System.out.println(ac.response);
|
||||
return new SubCommandFormattable(video);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user