mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
Add seek validation, autoplay system, progress bar & codebase cleanup
- Add seek duration validation — seeks beyond track length are rejected with clear error showing max allowed position - Add autoplay system with Last.fm similar tracks + YouTube search fallback — automatically queues similar tracks when queue ends - Add live progress bar to now playing with elapsed/total time display - Add robust ffmpeg cleanup to prevent race conditions during seek/skip/filter operations - Add proper queue advancement after seek so bot stays in voice - Add queueEnd event emission on skip/skipTo for autoplay trigger - Add _lastPlayedTrack preservation for autoplay recommendations
This commit is contained in:
1 parent
bc1fe82919
commit
0f2ee99f1e
23 files changed
+665
-170
No files matched your search
@@ -368,23 +368,7 @@ export async function run(msg) {
|
||||
const filter = FILTERS.find(f => f.emoji === emoji);
|
||||
if (!filter) return;
|
||||
|
||||
const track = player.queue.getCurrent();
|
||||
const previousActiveKeys = [...activeKeys];
|
||||
if (!track && false) {
|
||||
await menuMsg.edit({
|
||||
embeds: [buildPageEmbed(this.t.bind(this), msg, page, activeKeys, null)]
|
||||
}).catch(() => {});
|
||||
const errEmbed = new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setDescription(this.t(msg, "responses.filter.nothingPlaying"))
|
||||
;
|
||||
await menuMsg.edit({ embeds: [errEmbed] }).catch(() => {});
|
||||
await Utils.sleep(1000);
|
||||
await menuMsg.edit({
|
||||
embeds: [buildPageEmbed(this.t.bind(this), msg, page, activeKeys, null)]
|
||||
}).catch(() => {});
|
||||
return;
|
||||
}
|
||||
|
||||
if (filter.key === "off") {
|
||||
activeKeys = [];
|
||||
|
||||
Reference in new issue
Block a user