From c56059b6c9d28d17d82de090c5a0b9d9382cb82c Mon Sep 17 00:00:00 2001 From: inglettronald Date: Sun, 23 Jul 2023 21:47:02 -0500 Subject: Chat stacking with lots of refactor --- src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt') diff --git a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt index c000010..623c7b1 100644 --- a/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt +++ b/src/main/kotlin/com/dulkirfabric/features/chat/AbiPhoneDND.kt @@ -1,8 +1,8 @@ package com.dulkirfabric.features.chat import com.dulkirfabric.config.DulkirConfig -import com.dulkirfabric.events.chat.ChatReceivedEvent import com.dulkirfabric.events.PlaySoundEvent +import com.dulkirfabric.events.chat.ChatEvents import com.dulkirfabric.util.TextUtils import com.dulkirfabric.util.TextUtils.unformattedString import meteordevelopment.orbit.EventHandler @@ -24,7 +24,7 @@ object AbiPhoneDND { } @EventHandler - fun handle(event: ChatReceivedEvent) { + fun handle(event: ChatEvents.AllowChat) { if (!DulkirConfig.configOptions.abiPhoneDND) return val unformatted = event.message.unformattedString if (unformatted matches abiPhoneFormat && !unformatted.contains("Elle") && !unformatted.contains("Dean")) { -- cgit