aboutsummaryrefslogtreecommitdiff
path: root/src/commands/today/mod.rs
diff options
context:
space:
mode:
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 {