Ignore bots interacting with hideko
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bea 2022-12-19 16:54:15 +01:00
parent fd100649a7
commit 495f164552

View File

@ -57,6 +57,9 @@ public class MessageCommandListener extends ListenerAdapter
@Override
public void onMessageReceived(@NotNull MessageReceivedEvent event)
{
// check if a bot is sending this message, and ignore it
if(event.getAuthor().isBot()) return;
// warning: we are getting the RAW value of the message content, not the DISPLAY value!
String eventMessage = event.getMessage().getContentRaw();