Unused imports
This commit is contained in:
parent
ec11cf7035
commit
bf5d3c8364
7 changed files with 10 additions and 18 deletions
|
|
@ -42,7 +42,6 @@ public class Hadder {
|
||||||
builder.setToken(config.getBotToken());
|
builder.setToken(config.getBotToken());
|
||||||
|
|
||||||
HelpCommand helpCommand = new HelpCommand();
|
HelpCommand helpCommand = new HelpCommand();
|
||||||
|
|
||||||
AudioManager audioManager = new AudioManager();
|
AudioManager audioManager = new AudioManager();
|
||||||
|
|
||||||
CommandHandler commandHandler = new CommandHandler(
|
CommandHandler commandHandler = new CommandHandler(
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package com.bbn.hadder.commands.music;
|
package com.bbn.hadder.commands.music;
|
||||||
|
|
||||||
import com.bbn.hadder.audio.AudioManager;
|
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
|
|
@ -20,6 +19,7 @@ public class InfoCommand implements Command {
|
||||||
public void executed(String[] args, CommandEvent event) {
|
public void executed(String[] args, CommandEvent event) {
|
||||||
if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) {
|
if (event.getAudioManager().hasPlayer(event.getGuild()) && event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack() == null) {
|
||||||
AudioTrack track = event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack();
|
AudioTrack track = event.getAudioManager().getPlayer(event.getGuild()).getPlayingTrack();
|
||||||
|
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(MessageEditor.MessageType.INFO, "", "", "", "").build()).queue();
|
||||||
event.getTextChannel().sendMessage("Track Info" + String.format(QUEUE_DESCRIPTION, CD, event.getAudioManager().getOrNull(track.getInfo().title),
|
event.getTextChannel().sendMessage("Track Info" + String.format(QUEUE_DESCRIPTION, CD, event.getAudioManager().getOrNull(track.getInfo().title),
|
||||||
"\n\u23F1 **|>** `[ " + event.getAudioManager().getTimestamp(track.getPosition()) + " / " + event.getAudioManager().getTimestamp(track.getInfo().length) + " ]`",
|
"\n\u23F1 **|>** `[ " + event.getAudioManager().getTimestamp(track.getPosition()) + " / " + event.getAudioManager().getTimestamp(track.getInfo().length) + " ]`",
|
||||||
"\n" + MIC, event.getAudioManager().getOrNull(track.getInfo().author),
|
"\n" + MIC, event.getAudioManager().getOrNull(track.getInfo().author),
|
||||||
|
|
|
||||||
|
|
@ -42,10 +42,8 @@ public class JoinCommand implements Command {
|
||||||
event.getGuild().getAudioManager().openAudioConnection(vc);
|
event.getGuild().getAudioManager().openAudioConnection(vc);
|
||||||
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(
|
event.getTextChannel().sendMessage(event.getMessageEditor().getMessage(
|
||||||
MessageEditor.MessageType.INFO,
|
MessageEditor.MessageType.INFO,
|
||||||
"commands.music.join.success.title",
|
"commands.music.join.success.title", "",
|
||||||
"",
|
"commands.music.join.success.description", vc.getName())
|
||||||
"commands.music.join.success.description",
|
|
||||||
vc.getName())
|
|
||||||
.build()).queue();
|
.build()).queue();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package com.bbn.hadder.commands.music;
|
package com.bbn.hadder.commands.music;
|
||||||
|
|
||||||
import com.bbn.hadder.audio.AudioManager;
|
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
package com.bbn.hadder.commands.music;
|
package com.bbn.hadder.commands.music;
|
||||||
|
|
||||||
import com.bbn.hadder.audio.AudioInfo;
|
import com.bbn.hadder.audio.AudioInfo;
|
||||||
import com.bbn.hadder.audio.AudioManager;
|
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
package com.bbn.hadder.commands.music;
|
package com.bbn.hadder.commands.music;
|
||||||
|
|
||||||
import com.bbn.hadder.audio.AudioInfo;
|
|
||||||
import com.bbn.hadder.audio.AudioManager;
|
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package com.bbn.hadder.commands.music;
|
package com.bbn.hadder.commands.music;
|
||||||
|
|
||||||
import com.bbn.hadder.audio.AudioManager;
|
|
||||||
import com.bbn.hadder.commands.Command;
|
import com.bbn.hadder.commands.Command;
|
||||||
import com.bbn.hadder.commands.CommandEvent;
|
import com.bbn.hadder.commands.CommandEvent;
|
||||||
import com.bbn.hadder.utils.MessageEditor;
|
import com.bbn.hadder.utils.MessageEditor;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue