Skip to content

Commit

Permalink
feat: Capture the map command now uses first link in the message if t…
Browse files Browse the repository at this point in the history
…here are more than them
  • Loading branch information
motzel committed Mar 15, 2024
1 parent 0d4a327 commit c6f7e74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bl-bot"
version = "0.17.16"
version = "0.17.17"
description = "Beat Leader Discord Bot"
readme = "README.md"
repository = "https://github.com/motzel/bl-bot"
Expand Down
6 changes: 0 additions & 6 deletions src/discord/bot/commands/clan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,6 @@ pub(crate) async fn cmd_capture(
return Ok(());
}

if leaderboard_ids.len() > 1 {
say_without_ping(ctx, "There is more than one link to the leaderboard in this message. I know you'd like to capture all these maps, but unfortunately I can't help.", false).await?;

return Ok(());
}

let clan_settings = guild_settings.clan_settings.clone().unwrap();

let current_user = ctx.author();
Expand Down

0 comments on commit c6f7e74

Please sign in to comment.