Skip to content

Commit

Permalink
Release 0.3.1a
Browse files Browse the repository at this point in the history
hotfix for 0.3.1
  • Loading branch information
phost1111 committed Feb 17, 2017
1 parent da33cff commit aac1096
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/events/MessageReceivedEventListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public class MessageReceivedEventListener {

@EventSubscriber
public void onMessageReceivedEvent(MessageReceivedEvent event) throws RateLimitException, DiscordException, MissingPermissionsException, IOException {
System.out.println("Private: " + event.getMessage().getChannel().isPrivate() + " ID: " + event.getMessage().getChannel().getID() + " startsWithStar: " + event.getMessage().getContent().startsWith("*"));
if(event.getMessage().getChannel().isPrivate() && event.getMessage().getChannel().getID().equals("241222722275770368") && event.getMessage().getContent().startsWith("*")){
if(event.getMessage().getChannel().isPrivate() && event.getMessage().getAuthor().getID().equals("139354514091147264") && event.getMessage().getContent().startsWith("*")){
ConsoleCommandManager.consoleCommandIn(new StringBuilder(event.getMessage().getContent()).deleteCharAt(0).toString());
return;
}
Expand Down

0 comments on commit aac1096

Please sign in to comment.