From e0a9b18f45858829f88cbe20611aaf696fc5bf6a Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 22:35:46 -0400 Subject: restore support for volume commands --- src/commands/game.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/commands/game.rs') diff --git a/src/commands/game.rs b/src/commands/game.rs index 78c08ee..3a47b32 100644 --- a/src/commands/game.rs +++ b/src/commands/game.rs @@ -307,14 +307,6 @@ async fn _game( users }; - let inferred = users.is_empty(); - - if inferred && users.len() < 2 || !inferred && users.is_empty() { - tracing::info!("too few known users to make game comparison"); - util::reply(ctx, "yer too lonely").await?; - return Ok(()); - } - let client = { let data = ctx.serenity_context().data.read().await; data.get::().unwrap().clone() @@ -333,6 +325,12 @@ async fn _game( }) .collect::>(); + if user_indexes.len() < 2 { + tracing::info!("too few known users to make game comparison"); + util::reply(ctx, "yer too lonely").await?; + return Ok(()); + } + let data_ref = &data; let user_games = user_indexes .iter() -- cgit v1.3.1