Skip to content

Commit

Permalink
Fix kudos not applying
Browse files Browse the repository at this point in the history
  • Loading branch information
CominAtYou committed Jul 16, 2023
1 parent b277438 commit 3f41000
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.cominatyou</groupId>
<artifactId>hildabot</artifactId>
<version>2.1.10</version>
<version>2.1.11</version>

<name>hildabot</name>
<url>http://www.example.com</url>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/cominatyou/eventhandlers/Kudos.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else if (giver.getInt("kudos:givenintimespan") < 10) {
giver.incrementKey("xp", 2);
}

if (message.getType() == MessageType.NORMAL && message.getAuthor().isBotUser()) {
if (message.getType() == MessageType.NORMAL && !message.getAuthor().isBotUser()) {
final RedisUserEntry receiver = new RedisUserEntry(message.getAuthor());
receiver.incrementKey("kudos:received");
receiver.incrementKey("xp", 2);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/cominatyou/util/versioning/Version.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.cominatyou.util.versioning;

public class Version {
public static final String VERSION = "2.1.10";
public static final String BUILD_NUMBER = "11B015";
public static final String VERSION = "2.1.11";
public static final String BUILD_NUMBER = "11B016";
public static final String VERSION_STRING = String.format("%s (%s)", VERSION, BUILD_NUMBER);
}

0 comments on commit 3f41000

Please sign in to comment.