Skip to content

Commit

Permalink
Update src/main/java/org/geysermc/discordbot/listeners/SwearHandler.java
Browse files Browse the repository at this point in the history
Co-authored-by: rtm516 <[email protected]>
  • Loading branch information
Kas-tle and rtm516 authored Sep 25, 2024
1 parent b376dc8 commit f54a64e
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/main/java/org/geysermc/discordbot/listeners/SwearHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,34 +204,4 @@ public void onGuildMemberUpdateNickname(@NotNull GuildMemberUpdateNicknameEvent
event.getMember().modifyNickname(getRandomNick()).queue();
}
}

// @Override
// public void onGenericCommandInteraction(@Nonnull GenericCommandInteractionEvent event) {
// Pattern filterPattern = null;
// for (OptionMapping option: event.getOptions()) {
// if (option.getType() != OptionType.STRING) continue;
// if ((filterPattern = checkString(option.getAsString())) == null) continue;
// break;
// }

// if (filterPattern == null) return;

// event.reply(event.getUser().getAsMention() +
// " your command cannot be processed because it contains profanity! Please read our rules for more information.")
// .setEphemeral(true).queue();

// if (event.getGuild() == null) return;

// @SuppressWarnings("null")
// String channel = event.getChannel() == null ? "Unknown" : event.getChannel().getAsMention();

// ServerSettings.getLogChannel(event.getGuild()).sendMessageEmbeds(new EmbedBuilder()
// .setTitle("Profanity removed")
// .setDescription("**Sender:** " + event.getUser().getAsMention() + "\n" +
// "**Channel:** " + channel + "\n" +
// "**Regex:** `" + filterPattern + "`\n" +
// "**Command:** " + event.getCommandString())
// .setColor(BotColors.FAILURE.getColor())
// .build()).queue();
// }
}

0 comments on commit f54a64e

Please sign in to comment.