Merge Greg's branch into the master branch #244
1 changed files with 1 additions and 9 deletions
|
|
@ -1,17 +1,12 @@
|
|||
package com.bbn.hadder.commands.music;
|
||||
|
||||
import com.bbn.hadder.audio.AudioManager;
|
||||
import com.bbn.hadder.audio.TrackManager;
|
||||
import com.bbn.hadder.commands.Command;
|
||||
import com.bbn.hadder.commands.CommandEvent;
|
||||
import com.bbn.hadder.utils.MessageEditor;
|
||||
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer;
|
||||
import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager;
|
||||
import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager;
|
||||
import net.dv8tion.jda.api.entities.Message;
|
||||
|
||||
import java.net.URL;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @author Skidder / GregTCLTK
|
||||
|
|
@ -19,9 +14,6 @@ import java.util.*;
|
|||
|
||||
public class PlayCommand implements Command {
|
||||
|
||||
private final AudioPlayerManager myManager = new DefaultAudioPlayerManager();
|
||||
public final Map<String, Map.Entry<AudioPlayer, TrackManager>> players = new HashMap<>();
|
||||
|
||||
/*
|
||||
private static final String CD = "\uD83D\uDCBF";
|
||||
private static final String MIC = "\uD83C\uDFA4 **|>** "; */
|
||||
|
|
@ -40,7 +32,7 @@ public class PlayCommand implements Command {
|
|||
new AudioManager().loadTrack(input, event, msg);
|
||||
} catch (Exception ignore) {
|
||||
Message msg = event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO,
|
||||
"commands.music.play.load.title", "⏯",
|
||||
"commands.music.play.load.title", "⭕",
|
||||
"commands.music.play.load.description", "").build()).complete();
|
||||
new AudioManager().loadTrack("ytsearch: " + input, event, msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue