! Alk
! Alk
DIAdiscord.js - Imagine an app
Created by braised_fish on 9/1/2023 in #djs-questions
how to use proxy in djs
would you please give an example for each
3 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
thx for your help pp904
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
mp3 file
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
i really don't know about voices, i use:
"@discordjs/opus": "^0.9.0",
"ffmpeg": "^0.0.4",
"ffmpeg-static": "^5.1.0",
"libsodium-wrappers": "^0.7.11",
"@discordjs/opus": "^0.9.0",
"ffmpeg": "^0.0.4",
"ffmpeg-static": "^5.1.0",
"libsodium-wrappers": "^0.7.11",
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
great, anything that i can do along with connection.destroy() to have better performance?
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
wdym by references, like this? const resource = createAudioResource(playObj.path);
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
idk how to explain it, but i think resource.playStream.destroy() will remove the stream from the ram or something like this
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
i want to delete the stream
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
I know how to access the audio player and voice connection, I want to know how can i access the audio resources @ShompiFlen @qjuh
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
Sorry for late responding
18 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 9/7/2023 in #djs-voice
How to get the audioResource
The code above showing how would i delete it when someone run play command for example, the resources will be there and i can access it. I’m asking about how can i reach it from different places, for example another command for stopping the audio
18 replies
DIAdiscord.js - Imagine an app
Created by SirNuny on 3/25/2023 in #djs-voice
Question about connection.on
I just came to ask the same question How to delete the old one or how to create only one "connection.on()" for multiple or all connections
19 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/24/2023 in #djs-voice
502 crashes the bot
Anything that i can do?
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/24/2023 in #djs-voice
502 crashes the bot
it works find most the time
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/24/2023 in #djs-voice
502 crashes the bot
djs 13.14 djs voice 0.15 node 16
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/20/2023 in #djs-voice
How to seek an aduio
it's there
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/20/2023 in #djs-voice
How to seek an aduio
let connection = getVoiceConnection(channel.guild.id)

if (!connection) connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});

let player = createAudioPlayer()

try {
path = "./allSounds/voice.mp3";
connection.subscribe(player)

console.log("1")
const audioStream = createReadStream(path);

console.log("2")
const audio = new FFmpeg({ source: audioStream

const resource = createAudioResource(audio, { inputType: StreamType.Raw });
console.log(resource)
console.log("3")

player.play(resource);
} catch (e) {
console.log(e)
}
let connection = getVoiceConnection(channel.guild.id)

if (!connection) connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});

let player = createAudioPlayer()

try {
path = "./allSounds/voice.mp3";
connection.subscribe(player)

console.log("1")
const audioStream = createReadStream(path);

console.log("2")
const audio = new FFmpeg({ source: audioStream

const resource = createAudioResource(audio, { inputType: StreamType.Raw });
console.log(resource)
console.log("3")

player.play(resource);
} catch (e) {
console.log(e)
}
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/20/2023 in #djs-voice
How to seek an aduio
const { FFmpeg } = require('prism-media');
let { createReadStream } = require("fs");

const audioStream = createReadStream(path);
console.log("2")
const audio = new FFmpeg({ source: audioStream });//.setSartTime('0:10')

const resource = createAudioResource(audio, { inputType: StreamType.Raw });
console.log(resource)
console.log("3")

player.play(resource);
const { FFmpeg } = require('prism-media');
let { createReadStream } = require("fs");

const audioStream = createReadStream(path);
console.log("2")
const audio = new FFmpeg({ source: audioStream });//.setSartTime('0:10')

const resource = createAudioResource(audio, { inputType: StreamType.Raw });
console.log(resource)
console.log("3")

player.play(resource);
no sound : (
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/20/2023 in #djs-voice
How to seek an aduio
it just start and stop
8 replies
DIAdiscord.js - Imagine an app
Created by ! Alk on 3/20/2023 in #djs-voice
How to seek an aduio
let connection = getVoiceConnection(channel.guild.id)

if (!connection) connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});

let player = createAudioPlayer()

connection.subscribe(player)
// const audioPlayer = createAudioPlayer();
console.log(path)
const audioStream = createReadStream(path);
const ffmpeg = new FFmpeg({
args: [
'-ss', String(20),
'-i', audioStream
],
});

const resource = createAudioResource(ffmpeg, { inputType: StreamType.Raw });

player.play(resource);
let connection = getVoiceConnection(channel.guild.id)

if (!connection) connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,
adapterCreator: channel.guild.voiceAdapterCreator,
});

let player = createAudioPlayer()

connection.subscribe(player)
// const audioPlayer = createAudioPlayer();
console.log(path)
const audioStream = createReadStream(path);
const ffmpeg = new FFmpeg({
args: [
'-ss', String(20),
'-i', audioStream
],
});

const resource = createAudioResource(ffmpeg, { inputType: StreamType.Raw });

player.play(resource);
8 replies