diff --git a/modules/bot/src/main/kotlin/dev/proxyfox/bot/MessageHandler.kt b/modules/bot/src/main/kotlin/dev/proxyfox/bot/MessageHandler.kt index 0e955ba0..204d36c4 100644 --- a/modules/bot/src/main/kotlin/dev/proxyfox/bot/MessageHandler.kt +++ b/modules/bot/src/main/kotlin/dev/proxyfox/bot/MessageHandler.kt @@ -110,5 +110,14 @@ suspend fun MessageCreateEvent.onMessageCreate() { } suspend fun ReactionAddEvent.onReactionAdd() { - TODO("Fetch the reaction and perform operations") + // TODO("Fetch the reaction and perform operations") + val system = database.getSystemByHost(userId.value) ?: return + val databaseMessage = database.fetchMessage(messageId) + if (databaseMessage?.systemId == system.id) { + when (emoji.name) { + "❌" -> { + message.delete("User requested message deletion.") + } + } + } } \ No newline at end of file