Effect to delete a "Chat Feed Alert"
If you're interested in my implementation, mark this as "Dev Approved" and I'll submit a proper PR.
Describe the solution you'd like
I want to add the ability to delete chat feed alerts. The existing "Chat Feed Alert" effect creates alerts in my dashboard, but once they're there, I have no way to remove specific alerts programmatically. This would enable me to create temporary notifications that can be dismissed by effects, such as showing a warning that disappears after a condition is met, or creating timed reminders that self-destruct. The implementation also involves adding an $effectOutput[messageId] to the chat feed alert effect, which I have another use case for in another context.
Additional context
I coded this up in my private fork. This implementation introduces a new effect, updates the frontend to handle alert deletion, and ensures message IDs are consistently generated and used for alerts.
src/backend/effects/builtin/chat-feed-alert-delete.ts: New effect to delete chat feed alerts by message ID. (+61 lines)src/backend/effects/builtin/chat-feed-alert.ts: Added messageId output and UUID generation for alerts. (+21 lines)src/gui/app/services/chat-messages.service.js: Updated to store messageId for alerts and handle DeleteChatAlert events. (+13 lines)src/backend/effects/builtin-effect-loader.js: Registered the new delete effect. (+1 line)
Proof of concept: https://github.com/TheStaticMage/Firebot/commit/66af9d83d5c17b68446d44c1bbdde3328e38dc50