From 5bba189fc4f85cf2ee41e93a90331e4900bb0edd Mon Sep 17 00:00:00 2001 From: WinG4merBR <68250074+WinG4merBR@users.noreply.github.com> Date: Thu, 9 Jan 2025 21:35:33 -0300 Subject: [PATCH] Remove onMessageReceived listener from MajorEventListener --- .../foxy/listeners/MajorEventListener.kt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt b/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt index c2aae084..7bf3ae15 100644 --- a/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt +++ b/foxy/src/main/kotlin/net/cakeyfox/foxy/listeners/MajorEventListener.kt @@ -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) +// } +// } +// } } \ No newline at end of file