added rzeczy

This commit is contained in:
Patryk Koreń
2025-12-26 20:45:38 +01:00
parent 375779de9c
commit b551cce62a
14 changed files with 326 additions and 91 deletions

24
src/commands/queue.ts Normal file
View File

@@ -0,0 +1,24 @@
import { CacheType, ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js';
import { getQueue } from '../playback';
const name = "queue"
function register() {
return new SlashCommandBuilder()
.setName(name)
.setDescription('Shows queue')
}
async function execute(interaction: ChatInputCommandInteraction<CacheType>) {
console.log(interaction.member)
const queue = getQueue()
await interaction.reply(`Current: ${queue.current}
Queue:
${queue.songList.join('\n ')}`);
}
export default {
name,
register,
execute
}