aboutsummaryrefslogtreecommitdiffstats
path: root/src/commands/utilities.rs
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-27 18:14:07 +0100
committersalmonik <salmonik@tuta.io>2026-10-27 18:14:07 +0100
commitfc5e0f48477366641b97efb0541053cc1e061be5 (patch)
tree99ad0352552a0eebc527f3184a11ad2e7676ffea /src/commands/utilities.rs
parentsilence songbird udp_rx decode noise (diff)
downloadsenator-sperma-fc5e0f48477366641b97efb0541053cc1e061be5.tar.gz
senator-sperma-fc5e0f48477366641b97efb0541053cc1e061be5.zip
music: add per-guild queue with now/next/last, skip and queue
Tracks are queued in memory per guild, defaulting to append (last). Playback auto-advances on TrackEvent::End/Error with a per-track token so manual stops and skips cannot double-advance. /music queue shows the current track followed by pending items. /stop clears the queue. Cron audio now goes through the same MusicState instead of poking the track-handle map directly.
Diffstat (limited to 'src/commands/utilities.rs')
-rw-r--r--src/commands/utilities.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs
index 87a5089..25d4bcf 100644
--- a/src/commands/utilities.rs
+++ b/src/commands/utilities.rs
@@ -2,7 +2,7 @@ use poise::serenity_prelude as serenity;
2use tracing::warn; 2use tracing::warn;
3 3
4use super::autocomplete::any_file; 4use super::autocomplete::any_file;
5use super::music::sanitize_yt_url; 5use crate::music::sanitize_yt_url;
6use crate::Data; 6use crate::Data;
7use crate::copyparty::{html_decode, percent_decode}; 7use crate::copyparty::{html_decode, percent_decode};
8use crate::error::{Error, Result}; 8use crate::error::{Error, Result};