Skip to content
This repository has been archived by the owner on Aug 4, 2019. It is now read-only.

Commit

Permalink
Ignore bots in auto responses too & v0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
PolarizedIons committed Sep 4, 2018
1 parent 564ba30 commit 894aed5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>net.polarizedions.polarizedbot</groupId>
<artifactId>polarizedbot</artifactId>
<version>0.2.2</version>
<version>0.2.3</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public void messageHandler(IMessage message) {
return;
}

if (user.isBot()) {
return;
}

GuildConfig guildConfig = GuildManager.getConfig(guild);

if (guildConfig.ignoredUsers.contains(user.getLongID())) {
Expand Down

0 comments on commit 894aed5

Please sign in to comment.