Skip to content

Commit

Permalink
Fix commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Repulser committed Apr 24, 2017
1 parent 660a2b9 commit 0e611fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/co/moosic/music/HandleCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
public class HandleCommands {
@SubscribeEvent
public void onGuildMessage(GuildMessageReceivedEvent e) {
if (!e.getChannel().getId().equals(Login.textChannelid)) return;
if (e.getMessage().getContent().toLowerCase().startsWith(Config.command_prefix + "np")) {
if (e.getMessage().getContent().toLowerCase().startsWith(Config.command_prefix.toLowerCase() + "np")) {
AudioTrack PlayingTrack = Login.scheduler.player.getPlayingTrack();
e.getChannel().sendMessage(new EmbedBuilder()
.setAuthor("Now Playing in " + e.getJDA().getSelfUser().getName(), PlayingTrack.getInfo().uri, e.getJDA().getSelfUser().getAvatarUrl())
Expand Down

0 comments on commit 0e611fd

Please sign in to comment.