Skip to content

Commit 45ea5c5

Browse files
committed
add "fucked" -> "hugged"
1 parent 3d7f6ef commit 45ea5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/javadiscord/javabot/listener/HugListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@Slf4j
2525
@RequiredArgsConstructor
2626
public class HugListener extends ListenerAdapter {
27-
private static final Pattern FUCKER = Pattern.compile("(fuck)(ing|er|k+)?", Pattern.CASE_INSENSITIVE);
27+
private static final Pattern FUCKER = Pattern.compile("(fuck)(ing|er|ed|k+)?", Pattern.CASE_INSENSITIVE);
2828
private final AutoMod autoMod;
2929
private final BotConfig botConfig;
3030

@@ -80,7 +80,7 @@ private static String replaceFucks(String str) {
8080
String theFuck = matchResult.group(1);
8181
String suffix = Objects.requireNonNullElse(matchResult.group(2), "");
8282
String processedSuffix = switch(suffix.toLowerCase()) {
83-
case "er", "ing" -> copyCase(suffix, 0, 'g') + suffix; // fucking, fucker
83+
case "er", "ed", "ing" -> copyCase(suffix, 0, 'g') + suffix; // fucking, fucker
8484
case "" -> ""; // just fuck
8585
default -> copyCase(suffix, "g".repeat(suffix.length())); // fuckkkkk...
8686
};

0 commit comments

Comments
 (0)