Skip to content

Commit

Permalink
wip reproxy + fix autoproxy for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruthenic committed Feb 23, 2024
1 parent f77e068 commit 7a0c376
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub mod import;
pub mod info;
pub mod mate;
pub mod misc;
pub mod reproxy;
pub mod settings;
pub mod switch_logs;

Expand Down
Empty file added src/commands/reproxy.rs
Empty file.
6 changes: 3 additions & 3 deletions src/events/on_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ pub async fn run(ctx: &SerenityContext, data: &Data, message: &Message) -> Resul

let mut mate = get_matching_mate(&mates, &message.content);

if message.content.starts_with("\\") {
return Ok(());
}
if message.content.starts_with("\\\\") {
update_latch(&settings_collection, message, None).await?;

return Ok(());
}
if message.content.starts_with("\\") {
return Ok(());
}

if mate.is_none() {
mate = get_autoproxied_mate(
Expand Down

0 comments on commit 7a0c376

Please sign in to comment.