Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kindit87 committed Nov 27, 2023
1 parent a922acf commit 977af57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/kindit/bot/listeners/UserMessageEL.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;

import java.util.Locale;

public class UserMessageEL extends ListenerAdapter {
@Override
public void onMessageReceived(MessageReceivedEvent event) {
long guildId = event.getGuild().getIdLong();

if (guildId == 688479404862472263L || guildId == 907572465998381076L || guildId == 738134731560058922L) {
String message = event.getMessage().getContentRaw();
String message = event.getMessage().getContentRaw().toLowerCase(Locale.ROOT);
String[] cummands = { "cum", "cam", "кам", "кум" };

for (String word : cummands) {
Expand Down

0 comments on commit 977af57

Please sign in to comment.