Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TennisBowling committed Aug 18, 2021
1 parent 0a11a3a commit 3cd6545
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/main/java/com/mrrandom/JavacordBot/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,7 @@ public static void main(String[] args) throws FileNotFoundException {
}
});
*/
//This listener does the busting
api.addMessageCreateListener(new MessageCreateListener() {
@Override
public void onMessageCreate(MessageCreateEvent event) {
if(event.isPrivateMessage()) {
System.out.println("Recieved DM");
try {
User usr = event.getMessage().getAuthor().asUser().get();
banUser(api, usr);
}
catch(Exception e) {
System.out.println("oOf. I tried, but i couldnt ban. Please check that i have the ban or admin perm.");
}
}
}
});


final double minutes = 2.0;
final double threshold = 10;
Expand All @@ -74,9 +59,6 @@ public void onServerMemberJoin(ServerMemberJoinEvent event) {
});

System.out.println("Logged in! Part of "+api.getServers().size()+" servers");
api.getServerTextChannelById(getChannel()).ifPresent(channel -> {
channel.sendMessage("I'm logged in!");
});

}

Expand Down

0 comments on commit 3cd6545

Please sign in to comment.