diff options
author | Ashelyn Rose <git@ashen.earth> | 2024-10-06 17:28:01 -0600 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2024-10-06 17:28:01 -0600 |
commit | 4d3f5abc20a44efc5c9b53efe3b21d34304dc46a (patch) | |
tree | bc62010cd01da102a4f7c5e61ef02b6ff1923350 /src/system/mod.rs | |
parent | 4ceb1c233d48bc537a8d2aaad129abbf71d8ff81 (diff) |
Allow just prefix to set ap latch without proxying
Diffstat (limited to 'src/system/mod.rs')
-rw-r--r-- | src/system/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |