aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/mod.rs
diff options
context:
space:
mode:
authorNathan Perry <np@npry.dev>2025-12-17 21:18:27 -0500
committerNathan Perry <np@npry.dev>2025-12-17 21:50:38 -0500
commitfa2a1380a8f1b854c6359b980895f4d9d7038002 (patch)
treeb39131b7e91efa0881c78833a4114827e1a0d411 /src/commands/today/mod.rs
parentde49f346313e7739945fbf0058bdfb78c90237a6 (diff)
bump all deps
Diffstat (limited to 'src/commands/today/mod.rs')
-rw-r--r--src/commands/today/mod.rs11
1 files changed, 4 insertions, 7 deletions
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<String>) -> 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 {