Ignore bots interacting with hideko
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fd100649a7
commit
495f164552
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user