Dmitry Batkovich
Dmitry Batkovich
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
Discord JS music playback via ffmpeg on stage
ror: FFmpeg/avconv not found!
at FFmpeg.getInfo (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:143:11)
at FFmpeg.create (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:156:38)
at new FFmpeg (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:45:27)
at Object.transformer (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2221:27)
at D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:58
at Array.map (<anonymous>)
at createAudioResource (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:39)
at d:\KJPiTechnologes\discordbots\neurodj\src\index.js:397:32
at Array.forEach (<anonymous>)
at D:\KJPiTechnologes\discordbots\neurodj\src\index.js:387:21 {stack: 'Error: FFmpeg/avconv not found!
at FFmpeg…loges\discordbots\neurodj\src\index.js:387:21', message: 'FFmpeg/avconv not found!'}
ror: FFmpeg/avconv not found!
at FFmpeg.getInfo (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:143:11)
at FFmpeg.create (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:156:38)
at new FFmpeg (d:\KJPiTechnologes\discordbots\neurodj\node_modules\prism-media\src\core\FFmpeg.js:45:27)
at Object.transformer (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2221:27)
at D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:58
at Array.map (<anonymous>)
at createAudioResource (D:\KJPiTechnologes\discordbots\neurodj\node_modules\@discordjs\voice\dist\index.js:2428:39)
at d:\KJPiTechnologes\discordbots\neurodj\src\index.js:397:32
at Array.forEach (<anonymous>)
at D:\KJPiTechnologes\discordbots\neurodj\src\index.js:387:21 {stack: 'Error: FFmpeg/avconv not found!
at FFmpeg…loges\discordbots\neurodj\src\index.js:387:21', message: 'FFmpeg/avconv not found!'}
5 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
Discord JS music playback via ffmpeg on stage
and is it possible to specify the path to ffmpeg in the create Audio Resource, which is located in the ffmpeg Exe variable so that there is no this error?
5 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
How do I check that the bot is connected to the stage and releases on it?
client.voice.channel
6 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
How do I check that the bot is connected to the stage and releases on it?
and then the exception will come out again that the bot is connected
6 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
How do I check that the bot is connected to the stage and releases on it?
Of course, there is an option to make a boolean variable when the event is on, but if the bot is turned off, the variable will no longer be correct
6 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
How do I check that the bot is connected to the stage and releases on it?
function startingScene(sceneid,guildid,guild)
{
connection = joinVoiceChannel
({
channelId: sceneid,
guildId: guildid,
adapterCreator: guild.voiceAdapterCreator,
});


connection.on(VoiceConnectionStatus.Ready, () =>
{
console.log("Connection Scene!");
guild.members.me.voice.setSuppressed(false);
const channel = guild.channels.cache.get(SCENE_ID);
const options =
{
topic: 'Neuro DJ',
};
channel.createStageInstance(options);
});
}
function startingScene(sceneid,guildid,guild)
{
connection = joinVoiceChannel
({
channelId: sceneid,
guildId: guildid,
adapterCreator: guild.voiceAdapterCreator,
});


connection.on(VoiceConnectionStatus.Ready, () =>
{
console.log("Connection Scene!");
guild.members.me.voice.setSuppressed(false);
const channel = guild.channels.cache.get(SCENE_ID);
const options =
{
topic: 'Neuro DJ',
};
channel.createStageInstance(options);
});
}
6 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
Inline field title
channel correct
6 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 9/5/2023 in #djs-questions
Inline field title
const embedStart = new EmbedBuilder()
.setColor('#39ff14')
.addFields(
{ name: 'Regular field title', value: 'Some value here' },
{ name: '\u200B', value: '\u200B' },
{ name: 'Inline field title', value: 'Some value here', inline: true },
{ name: 'Inline field title', value: 'Some value here', inline: true },
);
await channel.send({ embeds: [embedStart] });
const embedStart = new EmbedBuilder()
.setColor('#39ff14')
.addFields(
{ name: 'Regular field title', value: 'Some value here' },
{ name: '\u200B', value: '\u200B' },
{ name: 'Inline field title', value: 'Some value here', inline: true },
{ name: 'Inline field title', value: 'Some value here', inline: true },
);
await channel.send({ embeds: [embedStart] });
6 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/22/2023 in #djs-questions
ExpectedConstraintError: Invalid number value
thanks
9 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/22/2023 in #djs-questions
ExpectedConstraintError: Invalid number value
ok
9 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/22/2023 in #djs-questions
ExpectedConstraintError: Invalid number value
const fields = [];
const fields = [];
9 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/22/2023 in #djs-questions
ExpectedConstraintError: Invalid number value
fields I have an array
9 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/22/2023 in #djs-questions
ExpectedConstraintError: Invalid number value
ExpectedConstraintError: Invalid number value
at Object.run (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:773:72)
at D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:66
at Array.reduce (<anonymous>)
at NumberValidator.parse (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:29)
at validateFieldLength (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:145:24)
at EmbedBuilder.addFields (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:224:5)
at ChildProcess.<anonymous> (D:\KJPiTechnologes\discordbots\events\src\index.js:458:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
constraint: 's.number.lessThanOrEqual',
given: 100,
expected: 'expected <= 25'
ExpectedConstraintError: Invalid number value
at Object.run (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:773:72)
at D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:66
at Array.reduce (<anonymous>)
at NumberValidator.parse (D:\KJPiTechnologes\discordbots\events\node_modules\@sapphire\shapeshift\dist\index.js:212:29)
at validateFieldLength (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:145:24)
at EmbedBuilder.addFields (D:\KJPiTechnologes\discordbots\events\node_modules\@discordjs\builders\dist\index.js:224:5)
at ChildProcess.<anonymous> (D:\KJPiTechnologes\discordbots\events\src\index.js:458:8)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
constraint: 's.number.lessThanOrEqual',
given: 100,
expected: 'expected <= 25'
9 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/21/2023 in #djs-questions
How to close scene?
working thanks
4 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/21/2023 in #djs-questions
Is it possible to make a bot that opens the stage and starts performing?
everything I've done is just json had to be created works thanks
24 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/21/2023 in #djs-questions
Is it possible to make a bot that opens the stage and starts performing?
no, how do I write it is there any example?
24 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/21/2023 in #djs-questions
Is it possible to make a bot that opens the stage and starts performing?
it's clear that everything is there, how do I make a test record?
const options = StageInstanceCreateOptions
{
topic: 'test',
StageInstancePrivacyLevel: public,
sendStartNotification: true,
};
const options = StageInstanceCreateOptions
{
topic: 'test',
StageInstancePrivacyLevel: public,
sendStartNotification: true,
};
24 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/21/2023 in #djs-questions
Is it possible to make a bot that opens the stage and starts performing?
now options how do I create them?
24 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/21/2023 in #djs-questions
Is it possible to make a bot that opens the stage and starts performing?
ok ok I mixed up EVENTS_ID and SCENE_ID it worked thanks
24 replies
DIAdiscord.js - Imagine an app
Created by Dmitry Batkovich on 8/21/2023 in #djs-questions
Is it possible to make a bot that opens the stage and starts performing?
a bot connects to this channel, but there is no createStageInstance method there
24 replies