Skip to content

Commit

Permalink
Remove onMessageReceived listener from MajorEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
WinG4merBR committed Jan 10, 2025
1 parent ecfe59e commit 5bba189
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ class MajorEventListener(foxy: FoxyInstance): ListenerAdapter() {
}
}

override fun onMessageReceived(event: MessageReceivedEvent) {
coroutineScope.launch {
if (event.author.isBot) return@launch

if (event.isFromGuild) {
antiRaid.handleMessage(event)
}
}
}
// TODO: Implement a good way to handle messages
// override fun onMessageReceived(event: MessageReceivedEvent) {
// coroutineScope.launch {
// if (event.author.isBot) return@launch
//
// if (event.isFromGuild) {
// antiRaid.handleMessage(event)
// }
// }
// }
}

0 comments on commit 5bba189

Please # to comment.