From 4d3f5abc20a44efc5c9b53efe3b21d34304dc46a Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sun, 6 Oct 2024 17:28:01 -0600 Subject: Allow just prefix to set ap latch without proxying --- src/system/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/system/mod.rs') diff --git a/src/system/mod.rs b/src/system/mod.rs index 6d81536..8fea1fa 100644 --- a/src/system/mod.rs +++ b/src/system/mod.rs @@ -209,6 +209,12 @@ impl Manager { self.latch_state = None; }, + message_parser::ParsedMessage::SetProxyAndDelete(member_id) => { + let _ = self.bots.get(&member_id).unwrap().delete_message(message.channel_id, message.id).await; + self.update_autoproxy_state_after_message(member_id, message.timestamp); + self.update_status_of_system(); + } + message_parser::ParsedMessage::ProxiedMessage { member_id, message_content, latch } => { if let Ok(_) = self.proxy_message(&message, member_id, message_content.as_str()).await { if latch { -- cgit 1.4.1