Add an overlay soundboard and fix playback command bugs.

Stop was advancing the queue, history overwrote the day file, and slash commands often never replied; soundboard clips now mix on top of the current track.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Patryk Koreń
2026-09-13 17:03:02 +02:00
parent 2eb8d25a2d
commit ad87d3fbb8
19 changed files with 708 additions and 126 deletions

View File

@@ -16,14 +16,18 @@ async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
await interaction.deferReply()
const audio = toggleLoop()
if (audio) {
await interaction.editReply(`looped ${formatFilePath(audio.url)}`);
await interaction.editReply(`looped ${formatFilePath(audio.path)}`);
}
else {
await interaction.editReply(`Loop turned off`);
}
} catch (error) {
console.error(error);
await interaction.reply('Coś poszło nie tak :/');
if (interaction.deferred || interaction.replied) {
await interaction.editReply('Coś poszło nie tak :/');
} else {
await interaction.reply('Coś poszło nie tak :/');
}
}
}