Bouns
Bouns
DIAdiscord.js - Imagine an app
Created by Bouns on 5/2/2024 in #djs-questions
NODE_ENV=production optimization for discord.js ?
Hello :Hey: Does Discord.js do any specific optimization when starting with NODE_ENV=production?
3 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 11/10/2022 in #djs-voice
Radio stream don't start with inline volume
When I play a music with a different format than opus
let resource = createAudioResource(stream.stream, {
inputType: stream.type, // different "opus"
inlineVolume: true,
metadata: song
})
let resource = createAudioResource(stream.stream, {
inputType: stream.type, // different "opus"
inlineVolume: true,
metadata: song
})
and then I want to play a radio with the inline volume activated the radio never starts,
await entersState(player, AudioPlayerStatus.Playing, 5_000); //trigger an error
await entersState(player, AudioPlayerStatus.Playing, 5_000); //trigger an error
while if I play a music with the opus format, the radio starts well with the inline volume, do you have a solution? "@discordjs/voice": "^0.13.0", "discord.js": "^14.5.0", "ffmpeg-static": "^4.4.0",
9 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 11/9/2022 in #djs-voice
After several hours of operation my bot does not want to launch the radio. Do you have a solution?
player.subscribe(serverQueue.connection);
player.play(resource);


try {
await entersState(player, AudioPlayerStatus.Playing, 7_000);
}
catch(err){
console.error(err)
return serverQueue.textChannel.send({ content: lang("RADIO_PLAYBACK_ERROR", guild.preferredLocale) })
}
player.subscribe(serverQueue.connection);
player.play(resource);


try {
await entersState(player, AudioPlayerStatus.Playing, 7_000);
}
catch(err){
console.error(err)
return serverQueue.textChannel.send({ content: lang("RADIO_PLAYBACK_ERROR", guild.preferredLocale) })
}
3 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 10/17/2022 in #djs-voice
when his bot is inside a voice channel, moving others takes about 5 seconds, whilst when it’s not in
14 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 10/16/2022 in #djs-questions
my bot but a lot of time to move a person !!!
5 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 10/6/2022 in #djs-questions
which configuration to choose for a bot between 100 and 1000 servers?
which configuration to choose for a bot between 100 and 1000 servers?
5 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 10/5/2022 in #djs-voice
All element play can be inlineVolume ?
my bot can play music with a link (NOT YOUTUBE), with a file or even a stream link from a radio. Do all these elements accept the volume management (inlineVolume) directly with "createAudioResource"?
7 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 8/4/2022 in #djs-questions
How can i get all activities available on a guild ?
I want to create a command that allows to launch an in channel activity
3 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 8/3/2022 in #djs-voice
get user audio and resend in channel
I want to get a user audio and resend in real time the audio in voice channel
let connection = await joinVoiceChannel({
channelId: message.member.voice.channel.id,
guildId: message.guildId,
adapterCreator: message.guild.voiceAdapterCreator,
selfDeaf: false,
});

let audioA = connection.receiver.subscribe("266636247017979904", {
end: { behavior: EndBehaviorType.Manual }
})

audioA.on("data", (data) => {
console.log(data)
})

let resource = await createAudioResource(audioA)

let player = await createAudioPlayer({
behaviors: {
noSubscriber: NoSubscriberBehavior.Play
}
})

player.subscribe(connection);

player.play(resource);
let connection = await joinVoiceChannel({
channelId: message.member.voice.channel.id,
guildId: message.guildId,
adapterCreator: message.guild.voiceAdapterCreator,
selfDeaf: false,
});

let audioA = connection.receiver.subscribe("266636247017979904", {
end: { behavior: EndBehaviorType.Manual }
})

audioA.on("data", (data) => {
console.log(data)
})

let resource = await createAudioResource(audioA)

let player = await createAudioPlayer({
behaviors: {
noSubscriber: NoSubscriberBehavior.Play
}
})

player.subscribe(connection);

player.play(resource);
4 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 8/3/2022 in #djs-voice
How can i send multi audio in same channel
I want my bot to take multiple audio inputs and play them in one audio channel at the same time (like running two ytb videos at the same time)
6 replies
DIAdiscord.js - Imagine an app
Created by Bouns on 7/19/2022 in #djs-voice
Seek command
how can i move forward or backward in the music being played with discord.js/voice? I would like to create a seek command.
32 replies