From fa2a1380a8f1b854c6359b980895f4d9d7038002 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Wed, 17 Dec 2025 21:18:27 -0500 Subject: bump all deps --- src/commands/today/mod.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/commands/today') diff --git a/src/commands/today/mod.rs b/src/commands/today/mod.rs index 22e006c..692ce1e 100644 --- a/src/commands/today/mod.rs +++ b/src/commands/today/mod.rs @@ -1,10 +1,7 @@ use chrono::Duration; use grate::tracing; use lazy_static::lazy_static; -use rand::{ - seq::SliceRandom, - thread_rng, -}; +use rand::prelude::IndexedRandom; use songbird::input::{ Compose, YoutubeDl, @@ -12,6 +9,7 @@ use songbird::input::{ use tap::Conv; use crate::{ + PoiseContext, bot::{ HttpKey, PlaybackKey, @@ -19,12 +17,11 @@ use crate::{ commands::{ playback, playback::{ - songbird, InvokeInfo, + songbird, }, }, util, - PoiseContext, }; mod prelude; @@ -104,7 +101,7 @@ pub async fn today(ctx: PoiseContext<'_>, #[rest] _rest: Option) -> anyh tracing::debug!(option_count = options.len(), %today); - let play_args = options.choose(&mut thread_rng()); + let play_args = options.choose(&mut rand::rng()); if let Some(play_args) = play_args { let Some(voice_channel) = util::best_voice_channel(ctx) else { -- cgit v1.3.1