Farleena (Dani)
Farleena (Dani)
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
app.get('/resources/:subdirname/:filename', (request, response) => {
return response.sendFile(request.params.filename, { root: path.join(path.resolve(__dirname, '..'), 'resources/pics', request.params.subdirname) });
});
app.get('/resources/:subdirname/:filename', (request, response) => {
return response.sendFile(request.params.filename, { root: path.join(path.resolve(__dirname, '..'), 'resources/pics', request.params.subdirname) });
});
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
actually, if I put a fixed, completed link in there, it also does not work.. maybe I serve the file wrong?
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
(the link might not always be available for you to check, the express runs along the bot and only alive when I am debugging the bot)
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
Yet as thumbnail it does not appear
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
getRandomElement chooses from these: "settingsThumbnails": ["settingsThumbnails/mehnera-settings-1.png", "settingsThumbnails/mehnera-settings-2.png"],
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
WEBREDIRECT is defined in .env WEBREDIRECT=https://kurumi.farleena.cc
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/28/2024 in #djs-questions
.setThumbnail link not working.
Embed code:
const embed = new EmbedBuilder()
.setTitle('🔧 Beállítások')
.setDescription('A legördülő menü segítségével válassz beállítási kategóriát!')
.setColor(0x0000FF)
// .setThumbnail(getRandomElement(settingsThumbnails))
.setThumbnail(`${process.env.WEBREDIRECT}/resources/${getRandomElement(settingsThumbnails)}`)
.setFooter({ text: `${interaction.client.user.username} by Farleena`, iconURL: `${interaction.client.user.displayAvatarURL({ dynamic: true })}` });

const row = new ActionRowBuilder()
.addComponents([settingsPageSelector]);
const embed = new EmbedBuilder()
.setTitle('🔧 Beállítások')
.setDescription('A legördülő menü segítségével válassz beállítási kategóriát!')
.setColor(0x0000FF)
// .setThumbnail(getRandomElement(settingsThumbnails))
.setThumbnail(`${process.env.WEBREDIRECT}/resources/${getRandomElement(settingsThumbnails)}`)
.setFooter({ text: `${interaction.client.user.username} by Farleena`, iconURL: `${interaction.client.user.displayAvatarURL({ dynamic: true })}` });

const row = new ActionRowBuilder()
.addComponents([settingsPageSelector]);
10 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/27/2024 in #djs-voice
AudioPlayer amd VoiceConnection life and listeners
or I could actually store the connection in a const as it does have it's destroy method, only the player needs to be without references.. 🤔 ?
9 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/27/2024 in #djs-voice
AudioPlayer amd VoiceConnection life and listeners
is this valid?
9 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/27/2024 in #djs-voice
AudioPlayer amd VoiceConnection life and listeners
So let's say I have two commands, one that connects the bot to a channel and plays something, and attaches some listeners to both the connection and the player to see their states. And the other disconnects the bot from voice. How would I ensure no garbage is left where it shouldn't be? I did this in the disconnect command:
getVoiceConnection(voiceChannel.guild.id).state.subscription.player.removeAllListeners().stop(true); getVoiceConnection(voiceChannel.guild.id).removeAllListeners().destroy();
getVoiceConnection(voiceChannel.guild.id).state.subscription.player.removeAllListeners().stop(true); getVoiceConnection(voiceChannel.guild.id).removeAllListeners().destroy();
9 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/27/2024 in #djs-voice
AudioPlayer amd VoiceConnection life and listeners
Thank you!
9 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/27/2024 in #djs-voice
AudioPlayer amd VoiceConnection life and listeners
Does declaring it as a constant like in the guide tho count as reference? const player = createAudioPlayer();
9 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/27/2024 in #djs-voice
AudioPlayer amd VoiceConnection life and listeners
No description
9 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/27/2024 in #djs-voice
AudioPlayer amd VoiceConnection life and listeners
What do you refer to by "no reference"?
9 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/25/2024 in #djs-voice
Does audioplayer buffering state ever time out?
Understood. Apologies for bothering. Please close and delete the thread.
12 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/25/2024 in #djs-voice
Does audioplayer buffering state ever time out?
I'm sorry I was not aware that streaming media from any source via a discord bot is against the TOS. Or we might not be on the same page here. I am NOT trying to stream copyrighted media from YouTube, I am trying to stream my own media from my own computer, played by another application that is able to output web streams, and capture that stream to play via a discord bot I made. Please clarify if this is also against the TOS, and if it is, I will cease asking more questions and please remove this thread. I really didn't came here for trouble, sorry again.
12 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/25/2024 in #djs-voice
Does audioplayer buffering state ever time out?
But if we leave the details and just focus on the initial question about the buffering state? Or normally it's not a likely scenario for a player to stay in that state for long? I know if I play local media one by one, then it shouldn't, I was just curious about this case.
12 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/25/2024 in #djs-voice
Does audioplayer buffering state ever time out?
The reason I need the API is because the bot has a nicely done web UI to manage the local media it plays, manage playlist, control the player.. it's so much more convenient then having to control it via commands and interactions. I know, why don't I listen to a music player app or such then.. 😄
12 replies
DIAdiscord.js - Imagine an app
Created by Farleena (Dani) on 1/25/2024 in #djs-voice
Does audioplayer buffering state ever time out?
apparently from YT, but I'm not sure if that part of the code is still working, I only used it for playing my local media. I'm sorry, if the topic is stretching legal issues, I can remove it, didn't mean harm.
12 replies